0
0
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:
Bram Moolenaar
2019-09-21 20:48:04 +02:00
parent 4d5c12626c
commit b20b9e14dd
35 changed files with 2415 additions and 2490 deletions

View File

@@ -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;
}