Skip to content

Instantly share code, notes, and snippets.

@ichizok
Last active October 14, 2016 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichizok/4fe3853dbc7cc2e67c4a994e59fc5ee8 to your computer and use it in GitHub Desktop.
Save ichizok/4fe3853dbc7cc2e67c4a994e59fc5ee8 to your computer and use it in GitHub Desktop.
diff --git a/src/move.c b/src/move.c
index a4d5f82..c24c74f 100644
--- a/src/move.c
+++ b/src/move.c
@@ -177,7 +177,7 @@ update_topline(void)
int save_so = p_so;
#endif
- if (!screen_valid(TRUE))
+ if (!screen_valid(TRUE) || !termcap_active)
return;
/* If the window height is zero just use the cursor line. */
diff --git a/src/screen.c b/src/screen.c
index 5ebca09..26af008 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -504,7 +504,7 @@ update_screen(int type)
#endif
/* Don't do anything if the screen structures are (not yet) valid. */
- if (!screen_valid(TRUE))
+ if (!screen_valid(TRUE) || !termcap_active)
return;
if (must_redraw)
@@ -824,7 +824,7 @@ update_single_line(win_T *wp, linenr_T lnum)
int j;
/* Don't do anything if the screen structures are (not yet) valid. */
- if (!screen_valid(TRUE))
+ if (!screen_valid(TRUE) || !termcap_active)
return;
if (lnum >= wp->w_topline && lnum < wp->w_botline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment