aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-10-22 09:05:14 +0800
committerGitHub <noreply@github.com>2024-10-22 09:05:14 +0800
commitf663243e95f488b8f4224bdae2697ddac21d0ffb (patch)
tree944b6e4c5e0593605060ce96861d5f3ddf94a100 /src/nvim/main.c
parentc8e47f648052f8001d8a493cf7ca6c4867a36bc3 (diff)
downloadrneovim-f663243e95f488b8f4224bdae2697ddac21d0ffb.tar.gz
rneovim-f663243e95f488b8f4224bdae2697ddac21d0ffb.tar.bz2
rneovim-f663243e95f488b8f4224bdae2697ddac21d0ffb.zip
vim-patch:9.1.0797: testing of options can be further improved (#30893)
Problem: testing of options can be further improved Solution: split the generated option test into test_options_all.vim, add more test cases, save and restore values, fix use-after-free closes: vim/vim#15894 https://github.com/vim/vim/commit/6eca04e9f1d446dc509ba51e32da56fa413fe2f0 Co-authored-by: Milly <milly.ca@gmail.com>
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 436c3ccc7a..695bd4c95a 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -777,7 +777,11 @@ void getout(int exitval)
}
}
- if (p_shada && *p_shada != NUL) {
+ if (
+#ifdef EXITFREE
+ !entered_free_all_mem &&
+#endif
+ p_shada && *p_shada != NUL) {
// Write out the registers, history, marks etc, to the ShaDa file
shada_write_file(NULL, false);
}