mirror of
https://github.com/neovim/neovim.git
synced 2025-11-28 05:00:44 +00:00
ui_detach: Do not redraw during teardown/exit.
This commit is contained in:
@@ -258,7 +258,10 @@ void ui_detach_impl(UI *ui)
|
||||
shift_index++;
|
||||
}
|
||||
|
||||
if (--ui_count) {
|
||||
if (--ui_count
|
||||
// During teardown/exit the loop was already destroyed, cannot schedule.
|
||||
// https://github.com/neovim/neovim/pull/5119#issuecomment-258667046
|
||||
&& !exiting) {
|
||||
ui_schedule_refresh();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user