Mercurial > vim
diff src/ex_getln.c @ 18135:1868ec23360e v8.1.2062
patch 8.1.2062: the mouse code is spread out
Commit: https://github.com/vim/vim/commit/b20b9e14ddd8db111e886ad0494e15b955159426
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 21 20:48:04 2019 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 21 Sep 2019 21:00:07 +0200 |
parents | a2870e6f5b45 |
children | 59bc3cd42cf5 |
line wrap: on
line diff
--- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -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; }