mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.1.2062: the mouse code is spread out
Problem: The mouse code is spread out. Solution: Move all the mouse code to mouse.c. (Yegappan Lakshmanan, closes #4959)
This commit is contained in:
@@ -924,9 +924,7 @@ getcmdline_int(
|
||||
im_set_active(TRUE);
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_MOUSE
|
||||
setmouse();
|
||||
#endif
|
||||
#ifdef CURSOR_SHAPE
|
||||
ui_cursor_shape(); /* may show different cursor shape */
|
||||
#endif
|
||||
@@ -2389,9 +2387,7 @@ returncmd:
|
||||
im_save_status(b_im_ptr);
|
||||
im_set_active(FALSE);
|
||||
#endif
|
||||
#ifdef FEAT_MOUSE
|
||||
setmouse();
|
||||
#endif
|
||||
#ifdef CURSOR_SHAPE
|
||||
ui_cursor_shape(); /* may show different cursor shape */
|
||||
#endif
|
||||
@@ -4160,9 +4156,7 @@ open_cmdwin(void)
|
||||
exmode_active = 0;
|
||||
|
||||
State = NORMAL;
|
||||
# ifdef FEAT_MOUSE
|
||||
setmouse();
|
||||
# endif
|
||||
|
||||
// Trigger CmdwinEnter autocommands.
|
||||
trigger_cmd_autocmd(cmdwin_type, EVENT_CMDWINENTER);
|
||||
@@ -4290,9 +4284,7 @@ open_cmdwin(void)
|
||||
# endif
|
||||
|
||||
State = save_State;
|
||||
# ifdef FEAT_MOUSE
|
||||
setmouse();
|
||||
# endif
|
||||
|
||||
return cmdwin_result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user