Mercurial > vim
diff src/misc1.c @ 14629:100a44722322 v8.1.0328
patch 8.1.0328: inputlist() doesn't work with a timer
commit https://github.com/vim/vim/commit/4cbdf155ca7bb6fbdab2d5acafae5fc712fca8b8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 26 21:23:07 2018 +0200
patch 8.1.0328: inputlist() doesn't work with a timer
Problem: inputlist() doesn't work with a timer. (Dominique Pelle)
Solution: Don't redraw when cmdline_row is zero. (Hirohito Higashi,
closes #3239)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 26 Aug 2018 21:30:07 +0200 |
parents | c8f07e8b273e |
children | d2cfca5b178e |
line wrap: on
line diff
--- a/src/misc1.c +++ b/src/misc1.c @@ -3747,18 +3747,18 @@ prompt_for_number(int *mouse_used) else MSG_PUTS(_("Type number and <Enter> (empty cancels): ")); - /* Set the state such that text can be selected/copied/pasted and we still - * get mouse events. */ + // Set the state such that text can be selected/copied/pasted and we still + // get mouse events. redraw_after_callback() will not redraw if cmdline_row + // is zero. save_cmdline_row = cmdline_row; cmdline_row = 0; save_State = State; - State = ASKMORE; /* prevents a screen update when using a timer */ + State = CMDLINE; #ifdef FEAT_MOUSE - /* May show different mouse shape. */ + // May show different mouse shape. setmouse(); #endif - i = get_number(TRUE, mouse_used); if (KeyTyped) { @@ -3773,7 +3773,7 @@ prompt_for_number(int *mouse_used) cmdline_row = save_cmdline_row; State = save_State; #ifdef FEAT_MOUSE - /* May need to restore mouse shape. */ + // May need to restore mouse shape. setmouse(); #endif