diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-07 17:38:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-07 17:38:41 +0200 |
commit | 917e32bda5a93941fbbccab09ae3960114b67188 (patch) | |
tree | cb6ca0ec9d5f36da3a40d4efafd080d9830b7d47 /src/term.c | |
parent | 5db7eec42337f0eecdc332f582eecf37278044e8 (diff) | |
download | vim-git-917e32bda5a93941fbbccab09ae3960114b67188.tar.gz |
patch 8.1.0244: no redraw when using a STOP signal on Vim and then CONTv8.1.0244
Problem: No redraw when using a STOP signal on Vim and then a CONT signal.
Solution: Catch the CONT signal and force a redraw. (closes #3285)
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c index 209a03f5c..ace467f6d 100644 --- a/src/term.c +++ b/src/term.c @@ -3789,16 +3789,23 @@ scroll_start(void) static int cursor_is_off = FALSE; /* + * Enable the cursor without checking if it's already enabled. + */ + void +cursor_on_force(void) +{ + out_str(T_VE); + cursor_is_off = FALSE; +} + +/* * Enable the cursor. */ void cursor_on(void) { if (cursor_is_off) - { - out_str(T_VE); - cursor_is_off = FALSE; - } + cursor_on_force(); } /* |