diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-18 08:54:53 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-20 06:08:41 +0800 |
commit | f357c9bca59a58c8586a348d0d1dcd81116079a3 (patch) | |
tree | 4fe3cccbb140a0063fb75c0b59373e59a95ea9b1 /src/nvim/memory.c | |
parent | 8620dfc5bdedc26e24119eb016d7e6121e9b49b6 (diff) | |
download | rneovim-f357c9bca59a58c8586a348d0d1dcd81116079a3.tar.gz rneovim-f357c9bca59a58c8586a348d0d1dcd81116079a3.tar.bz2 rneovim-f357c9bca59a58c8586a348d0d1dcd81116079a3.zip |
vim-patch:8.1.1076: file for Insert mode is much too big
Problem: File for Insert mode is much too big.
Solution: Split off the code for Insert completion. (Yegappan Lakshmanan,
closes vim/vim#4044)
https://github.com/vim/vim/commit/7591bb39d58ece38a5fef984a08ea9012616c1f9
Cherry-pick ins_compl_len() -> get_compl_len() from patch 8.2.4001.
Revert a71c5e9eb98fbb2ca88510269935cdcda37369fc: ctrl_x_mode is no
longer a global variable, so l_ctrl_x_mode is no longer needed.
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r-- | src/nvim/memory.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c index 4d5cf047f9..a74fcf6137 100644 --- a/src/nvim/memory.c +++ b/src/nvim/memory.c @@ -14,6 +14,7 @@ #include "nvim/eval.h" #include "nvim/highlight.h" #include "nvim/highlight_group.h" +#include "nvim/insexpand.h" #include "nvim/lua/executor.h" #include "nvim/mapping.h" #include "nvim/memfile.h" @@ -710,6 +711,7 @@ void free_all_mem(void) free_search_patterns(); free_old_sub(); free_last_insert(); + free_insexpand_stuff(); free_prev_shellcmd(); free_regexp_stuff(); free_tag_stuff(); |