mirror of
https://github.com/neovim/neovim.git
synced 2026-02-02 10:04:29 +00:00
Fix issue where callbacks are garbage collected
Import necessary part of vim-patch:8.1.1575.
75a1a9415b
This commit is contained in:
@@ -5152,6 +5152,10 @@ bool garbage_collect(bool testing)
|
||||
}
|
||||
// buffer ShaDa additional data
|
||||
ABORTING(set_ref_dict)(buf->additional_data, copyID);
|
||||
|
||||
// buffer callback functions
|
||||
set_ref_in_callback(&buf->b_prompt_callback, copyID, NULL, NULL);
|
||||
set_ref_in_callback(&buf->b_prompt_interrupt, copyID, NULL, NULL);
|
||||
}
|
||||
|
||||
FOR_ALL_TAB_WINDOWS(tp, wp) {
|
||||
|
||||
Reference in New Issue
Block a user