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)
diff --git a/src/main.c b/src/main.c
index 8c56c17..5363785 100644
--- a/src/main.c
+++ b/src/main.c
@@ -684,9 +684,7 @@
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 @@
emsg_skip = 0;
# endif
emsg_off = 0;
-# ifdef FEAT_MOUSE
setmouse();
-# endif
settmode(TMODE_RAW);
starttermcap();
scroll_start();