diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-26 21:23:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-26 21:23:07 +0200 |
commit | 4cbdf155ca7bb6fbdab2d5acafae5fc712fca8b8 (patch) | |
tree | 419150c31713642e5724e795c0593628ad1da576 /src/misc1.c | |
parent | 0529583ff144e2cb8fb57fe61a86997310bd7727 (diff) | |
download | vim-git-4cbdf155ca7bb6fbdab2d5acafae5fc712fca8b8.tar.gz |
patch 8.1.0328: inputlist() doesn't work with a timerv8.1.0328
Problem: inputlist() doesn't work with a timer. (Dominique Pelle)
Solution: Don't redraw when cmdline_row is zero. (Hirohito Higashi,
closes #3239)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/misc1.c b/src/misc1.c index f2aa96b37..dca599f50 100644 --- 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 |