aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-02-14 21:43:01 +0100
committerGitHub <noreply@github.com>2017-02-14 21:43:01 +0100
commit2a50ff7e2fa724fc748068ba19012239886b74dd (patch)
tree4379107af2737cb9531a9aff4db1cb8481b36561 /src/nvim/ui.c
parenteaf9caaf43516366e8d8aa44185f13079649ac59 (diff)
parent943531cf9e99835a319f805a012e0e65c3499a2d (diff)
downloadrneovim-2a50ff7e2fa724fc748068ba19012239886b74dd.tar.gz
rneovim-2a50ff7e2fa724fc748068ba19012239886b74dd.tar.bz2
rneovim-2a50ff7e2fa724fc748068ba19012239886b74dd.zip
Merge #6108 from ZyX-I/pr-5678
Better core dumps checking
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index d3784b6cd3..8c72c28e56 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -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();
}
}