diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-04 20:26:21 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-04 20:26:21 +0200 |
commit | 48ac671fe5cb5a7c2d5263d2f122e5e903022e30 (patch) | |
tree | de853f82e2d451d2067f562fcc78b074c97cbc08 /src/misc2.c | |
parent | 4e038571aa91521e110187a256b5d16bff8b5820 (diff) | |
download | vim-git-48ac671fe5cb5a7c2d5263d2f122e5e903022e30.tar.gz |
patch 8.1.1632: build with EXITFREE but without +arabic failsv8.1.1632
Problem: Build with EXITFREE but without +arabic fails.
Solution: Rename the function and adjust #ifdefs. (closes #4613)
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/misc2.c b/src/misc2.c index be9233f5b..892fbc56a 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -1060,7 +1060,7 @@ free_all_mem(void) spell_free_all(); # endif -#if defined(FEAT_INS_EXPAND) && defined(FEAT_BEVAL_TERM) +# if defined(FEAT_INS_EXPAND) && defined(FEAT_BEVAL_TERM) ui_remove_balloon(); # endif @@ -1092,7 +1092,7 @@ free_all_mem(void) # endif # if defined(FEAT_KEYMAP) do_cmdline_cmd((char_u *)"set keymap="); -#endif +# endif } # ifdef FEAT_TITLE @@ -1149,11 +1149,11 @@ free_all_mem(void) # ifdef FEAT_CMDHIST init_history(); # endif -#ifdef FEAT_TEXT_PROP +# ifdef FEAT_TEXT_PROP clear_global_prop_types(); -#endif +# endif -#ifdef FEAT_QUICKFIX +# ifdef FEAT_QUICKFIX { win_T *win; tabpage_T *tab; @@ -1163,7 +1163,7 @@ free_all_mem(void) FOR_ALL_TAB_WINDOWS(tab, win) qf_free_all(win); } -#endif +# endif // Close all script inputs. close_all_scripts(); @@ -1177,9 +1177,9 @@ free_all_mem(void) /* Free all buffers. Reset 'autochdir' to avoid accessing things that * were freed already. */ -#ifdef FEAT_AUTOCHDIR +# ifdef FEAT_AUTOCHDIR p_acd = FALSE; -#endif +# endif for (buf = firstbuf; buf != NULL; ) { bufref_T bufref; @@ -1193,7 +1193,9 @@ free_all_mem(void) buf = firstbuf; } - free_cmdline_buf(); +# ifdef FEAT_ARABIC + free_arshape_buf(); +# endif /* Clear registers. */ clear_registers(); |