From 5487624730b60426632326dde41383069754916b Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Thu, 20 Sep 2018 12:06:19 +0200 Subject: startup: don't erase screen on `:hi Normal` during startup NB: existing `color default` test was actually enough to trigger the bug, when ext_newgrid=false is used. I created the `:hi Normal` test as I thought the builtin colors wouldn't set Normal (unless 'bg' is changed) But as the root cause actually comes from `:hi Normal`, it makes sense to still add the separate test (if `color default` here gets optimized to become a no-op, or something). --- src/nvim/syntax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 05f06d64c3..4c054dc8e0 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -6884,7 +6884,7 @@ void do_highlight(const char *line, const bool forceit, const bool init) // "fg", which have been changed now. highlight_attr_set_all(); - if (!ui_is_external(kUINewgrid) && starting != NO_SCREEN) { + if (!ui_is_external(kUINewgrid) && starting == 0) { // Older UIs assume that we clear the screen after normal group is // changed ui_refresh(); -- cgit