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/message.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/message.c')
-rw-r--r-- | src/message.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/message.c b/src/message.c index 7810c5be1..b40753415 100644 --- a/src/message.c +++ b/src/message.c @@ -1058,9 +1058,7 @@ wait_return(int redraw) screenalloc(FALSE); State = HITRETURN; -#ifdef FEAT_MOUSE setmouse(); -#endif #ifdef USE_ON_FLY_SCROLL dont_scroll = TRUE; /* disallow scrolling here */ #endif @@ -1216,9 +1214,7 @@ wait_return(int redraw) */ tmpState = State; State = oldState; /* restore State before set_shellsize */ -#ifdef FEAT_MOUSE setmouse(); -#endif msg_check(); #if defined(UNIX) || defined(VMS) @@ -2684,9 +2680,7 @@ do_more_prompt(int typed_char) } State = ASKMORE; -#ifdef FEAT_MOUSE setmouse(); -#endif if (typed_char == NUL) msg_moremsg(FALSE); for (;;) @@ -2902,9 +2896,7 @@ do_more_prompt(int typed_char) /* clear the --more-- message */ screen_fill((int)Rows - 1, (int)Rows, 0, (int)Columns, ' ', ' ', 0); State = oldState; -#ifdef FEAT_MOUSE setmouse(); -#endif if (quit_more) { msg_row = Rows - 1; @@ -3608,9 +3600,7 @@ do_dialog( oldState = State; State = CONFIRM; -#ifdef FEAT_MOUSE setmouse(); -#endif /* * Since we wait for a keypress, don't make the @@ -3673,9 +3663,7 @@ do_dialog( } State = oldState; -#ifdef FEAT_MOUSE setmouse(); -#endif --no_wait_return; msg_end_prompt(); |