patch 8.1.0302: crash when using :suspend and "fg"
Problem: Crash when using :suspend and "fg".
Solution: Undo patch 8.1.244.
diff --git a/src/term.c b/src/term.c
index 66f03ee..97ddf8b 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3834,23 +3834,16 @@
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;
+ }
}
/*