summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-20 21:58:57 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-20 21:58:57 +0200
commitf1883479be91550bc31dd88f593b3012863a2629 (patch)
tree6fbbbcbeef8c22a24613eba072d150bb1fb112df /src/term.c
parent3f6a16f022c437eccaeb683640b25a972cb1b376 (diff)
downloadvim-git-f1883479be91550bc31dd88f593b3012863a2629.tar.gz
patch 8.1.0302: crash when using :suspend and "fg"v8.1.0302
Problem: Crash when using :suspend and "fg". Solution: Undo patch 8.1.244.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/term.c b/src/term.c
index 66f03ee10..97ddf8bc4 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3834,23 +3834,16 @@ 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)
- cursor_on_force();
+ {
+ out_str(T_VE);
+ cursor_is_off = FALSE;
+ }
}
/*