Last active
October 14, 2016 01:46
-
-
Save ichizok/4fe3853dbc7cc2e67c4a994e59fc5ee8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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