summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-07 17:38:41 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-07 17:38:41 +0200
commit917e32bda5a93941fbbccab09ae3960114b67188 (patch)
treecb6ca0ec9d5f36da3a40d4efafd080d9830b7d47 /src/term.c
parent5db7eec42337f0eecdc332f582eecf37278044e8 (diff)
downloadvim-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.c15
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();
}
/*