diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-21 20:48:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-21 20:48:04 +0200 |
commit | b20b9e14ddd8db111e886ad0494e15b955159426 (patch) | |
tree | 81bf23be4dbc17d4b793a29f3252448f5f1e7322 /src/ex_cmds.c | |
parent | 4d5c12626c98df23e1a5d953692d946310ddfa9c (diff) | |
download | vim-git-b20b9e14ddd8db111e886ad0494e15b955159426.tar.gz |
patch 8.1.2062: the mouse code is spread outv8.1.2062
Problem: The mouse code is spread out.
Solution: Move all the mouse code to mouse.c. (Yegappan Lakshmanan,
closes #4959)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index dceb1a739..6ae5969a0 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -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; |