comparison src/misc1.c @ 13768:bcef80912112 v8.0.1756

patch 8.0.1756: GUI: after prompting for a number the mouse shape is wrong commit https://github.com/vim/vim/commit/73658317bacd9a0264dfaa32288de6ea1f236fe5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 24 17:41:57 2018 +0200 patch 8.0.1756: GUI: after prompting for a number the mouse shape is wrong Problem: GUI: after prompting for a number the mouse shape is sometimes wrong. Solution: Call setmouse() after setting "State". (Hirohito Higashi, closes #2709)
author Christian Brabandt <cb@256bit.org>
date Tue, 24 Apr 2018 17:45:08 +0200
parents 69517d67421f
children cc21507ee4b1
comparison
equal deleted inserted replaced
13767:02617aff148e 13768:bcef80912112
3592 * get mouse events. */ 3592 * get mouse events. */
3593 save_cmdline_row = cmdline_row; 3593 save_cmdline_row = cmdline_row;
3594 cmdline_row = 0; 3594 cmdline_row = 0;
3595 save_State = State; 3595 save_State = State;
3596 State = ASKMORE; /* prevents a screen update when using a timer */ 3596 State = ASKMORE; /* prevents a screen update when using a timer */
3597 #ifdef FEAT_MOUSE
3598 /* May show different mouse shape. */
3599 setmouse();
3600 #endif
3601
3597 3602
3598 i = get_number(TRUE, mouse_used); 3603 i = get_number(TRUE, mouse_used);
3599 if (KeyTyped) 3604 if (KeyTyped)
3600 { 3605 {
3601 /* don't call wait_return() now */ 3606 /* don't call wait_return() now */
3606 msg_didout = FALSE; 3611 msg_didout = FALSE;
3607 } 3612 }
3608 else 3613 else
3609 cmdline_row = save_cmdline_row; 3614 cmdline_row = save_cmdline_row;
3610 State = save_State; 3615 State = save_State;
3616 #ifdef FEAT_MOUSE
3617 /* May need to restore mouse shape. */
3618 setmouse();
3619 #endif
3611 3620
3612 return i; 3621 return i;
3613 } 3622 }
3614 3623
3615 void 3624 void