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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user