diff options
Diffstat (limited to 'src/mouse.c')
-rw-r--r-- | src/mouse.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mouse.c b/src/mouse.c index c126a9ed0..c39f6148b 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -624,7 +624,7 @@ do_mouse( if (jump_flags) { jump_flags = jump_to_mouse(jump_flags, NULL, which_button); - update_curbuf(VIsual_active ? INVERTED : VALID); + update_curbuf(VIsual_active ? UPD_INVERTED : UPD_VALID); setcursor(); out_flush(); // Update before showing popup menu } @@ -1027,7 +1027,7 @@ do_mouse( curwin->w_set_curswant = TRUE; } if (is_click) - redraw_curbuf_later(INVERTED); // update the inversion + redraw_curbuf_later(UPD_INVERTED); // update the inversion } else if (VIsual_active && !old_active) { @@ -1164,7 +1164,7 @@ ins_mousescroll(int dir) // overlapped by the popup menu. if (pum_visible() && did_scroll) { - redraw_all_later(NOT_VALID); + redraw_all_later(UPD_NOT_VALID); ins_compl_show_pum(); } @@ -1597,7 +1597,7 @@ retnomove: if (flags & MOUSE_MAY_STOP_VIS) { end_visual_mode_keep_button(); - redraw_curbuf_later(INVERTED); // delete the inversion + redraw_curbuf_later(UPD_INVERTED); // delete the inversion } #if defined(FEAT_CMDWIN) && defined(FEAT_CLIPBOARD) // Continue a modeless selection in another window. @@ -1738,7 +1738,7 @@ retnomove: && (flags & MOUSE_MAY_STOP_VIS)))) { end_visual_mode_keep_button(); - redraw_curbuf_later(INVERTED); // delete the inversion + redraw_curbuf_later(UPD_INVERTED); // delete the inversion } #ifdef FEAT_CMDWIN if (cmdwin_type != 0 && wp != curwin) @@ -1842,7 +1842,7 @@ retnomove: if (flags & MOUSE_MAY_STOP_VIS) { end_visual_mode_keep_button(); - redraw_curbuf_later(INVERTED); // delete the inversion + redraw_curbuf_later(UPD_INVERTED); // delete the inversion } #if defined(FEAT_CMDWIN) && defined(FEAT_CLIPBOARD) @@ -1904,7 +1904,7 @@ retnomove: #endif curwin->w_valid &= ~(VALID_WROW|VALID_CROW|VALID_BOTLINE|VALID_BOTLINE_AP); - redraw_later(VALID); + redraw_later(UPD_VALID); row = 0; } else if (row >= curwin->w_height) @@ -1942,7 +1942,7 @@ retnomove: #ifdef FEAT_DIFF check_topfill(curwin, FALSE); #endif - redraw_later(VALID); + redraw_later(UPD_VALID); curwin->w_valid &= ~(VALID_WROW|VALID_CROW|VALID_BOTLINE|VALID_BOTLINE_AP); row = curwin->w_height - 1; @@ -1968,7 +1968,7 @@ retnomove: // Only use ScreenCols[] after the window was redrawn. Mainly matters // for tests, a user would not click before redrawing. // Do not use when 'virtualedit' is active. - if (curwin->w_redr_type <= VALID_NO_UPDATE && !virtual_active()) + if (curwin->w_redr_type <= UPD_VALID_NO_UPDATE && !virtual_active()) col_from_screen = ScreenCols[off]; #ifdef FEAT_FOLDING // Remember the character under the mouse, it might be a '-' or '+' in |