0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -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

@@ -684,9 +684,7 @@ vim_main2(void)
starttermcap(); /* start termcap if not done by wait_return() */
TIME_MSG("start termcap");
#ifdef FEAT_MOUSE
setmouse(); /* may start using the mouse */
#endif
setmouse(); // may start using the mouse
if (scroll_region)
scroll_region_reset(); /* In case Rows changed */
scroll_start(); /* may scroll the screen to the right position */
@@ -1182,9 +1180,7 @@ main_loop(
emsg_skip = 0;
# endif
emsg_off = 0;
# ifdef FEAT_MOUSE
setmouse();
# endif
settmode(TMODE_RAW);
starttermcap();
scroll_start();