mirror of
https://github.com/neovim/neovim.git
synced 2025-11-23 10:36:29 +00:00
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).
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user