comparison src/screen.c @ 19824:09a621bdb0bc v8.2.0468

patch 8.2.0468: GUI: pixel dust with some fonts and characters Commit: https://github.com/vim/vim/commit/7c003aa314337ce732e18c541fa93d71cafedf03 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 28 20:44:41 2020 +0100 patch 8.2.0468: GUI: pixel dust with some fonts and characters Problem: GUI: pixel dust with some fonts and characters. Solution: Always redraw the character before the cursor. (Nir Lichtman, closes #5549, closes #5856)
author Bram Moolenaar <Bram@vim.org>
date Sat, 28 Mar 2020 20:45:04 +0100
parents 22f0dda71638
children 435726a03481
comparison
equal deleted inserted replaced
19823:fafab4bec82f 19824:09a621bdb0bc
2786 else if (gui.in_use 2786 else if (gui.in_use
2787 && !gui.starting 2787 && !gui.starting
2788 && ScreenLines != NULL 2788 && ScreenLines != NULL
2789 && old_Rows != Rows) 2789 && old_Rows != Rows)
2790 { 2790 {
2791 (void)gui_redraw_block(0, 0, (int)Rows - 1, (int)Columns - 1, 0); 2791 gui_redraw_block(0, 0, (int)Rows - 1, (int)Columns - 1, 0);
2792 /* 2792
2793 * Adjust the position of the cursor, for when executing an external 2793 // Adjust the position of the cursor, for when executing an external
2794 * command. 2794 // command.
2795 */
2796 if (msg_row >= Rows) // Rows got smaller 2795 if (msg_row >= Rows) // Rows got smaller
2797 msg_row = Rows - 1; // put cursor at last row 2796 msg_row = Rows - 1; // put cursor at last row
2798 else if (Rows > old_Rows) // Rows got bigger 2797 else if (Rows > old_Rows) // Rows got bigger
2799 msg_row += Rows - old_Rows; // put cursor in same place 2798 msg_row += Rows - old_Rows; // put cursor in same place
2800 if (msg_col >= Columns) // Columns got smaller 2799 if (msg_col >= Columns) // Columns got smaller