summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-21 20:48:04 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-21 20:48:04 +0200
commitb20b9e14ddd8db111e886ad0494e15b955159426 (patch)
tree81bf23be4dbc17d4b793a29f3252448f5f1e7322 /src/main.c
parent4d5c12626c98df23e1a5d953692d946310ddfa9c (diff)
downloadvim-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/main.c')
-rw-r--r--src/main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 8c56c17b5..536378561 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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();