summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-11 22:01:51 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-11 22:01:51 +0200
commit0cb8ac71ae42f66d525ad855db01361ca38d935a (patch)
treeb92519c8cf47222d59efc7c78bb4f47005f6e041 /src/ui.c
parenta10ae5e323f4ebe6620869f4f9b0812b78090915 (diff)
downloadvim-0cb8ac71ae42f66d525ad855db01361ca38d935a.zip
patch 8.0.1815: crash with terminal window and with 'lazyredraw' set
Problem: Still a crash with terminal window and with 'lazyredraw' set. (Antoine) Solution: Do not wipe out the buffer when updating the screen.
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index 05e82e6c7..8e3f0deee 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -415,7 +415,10 @@ ui_breakcheck_force(int force)
#endif
mch_breakcheck(force);
- updating_screen = save_us;
+ if (save_us)
+ updating_screen = save_us;
+ else
+ reset_updating_screen(FALSE);
}
/*****************************************************************************