1
0
forked from aniani/vim

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

@@ -4221,9 +4221,7 @@ do_sub(exarg_T *eap)
* properly */
save_State = State;
State = CONFIRM;
#ifdef FEAT_MOUSE
setmouse(); /* disable mouse in xterm */
#endif
setmouse(); // disable mouse in xterm
curwin->w_cursor.col = regmatch.startpos[0].col;
if (curwin->w_p_crb)
do_check_cursorbind();
@@ -4397,9 +4395,7 @@ do_sub(exarg_T *eap)
scrolldown_clamp();
}
State = save_State;
#ifdef FEAT_MOUSE
setmouse();
#endif
if (vim_strchr(p_cpo, CPO_UNDO) != NULL)
--no_u_sync;