diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-02-14 19:23:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 19:23:11 +0100 |
commit | 77286915a8d90d358860a64e3beee10054cd8a84 (patch) | |
tree | a2afa6523df6f29a4e2c570f249eeca58ba042c5 /src/nvim/ex_getln.c | |
parent | 674cb2afde0d82557c8e3afdf706cd6f75195fa5 (diff) | |
parent | d9497053e84aaf3dabecd362da19913811e8c22e (diff) | |
download | rneovim-77286915a8d90d358860a64e3beee10054cd8a84.tar.gz rneovim-77286915a8d90d358860a64e3beee10054cd8a84.tar.bz2 rneovim-77286915a8d90d358860a64e3beee10054cd8a84.zip |
Merge pull request #8008 from bfredl/arrayfree
ex_getln: clear cmdline_block after it's freed
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 07aab3307a..dd7504c05e 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -194,7 +194,8 @@ static int cmd_showtail; /* Only show path tail in lists ? */ static int new_cmdpos; /* position set by set_cmdline_pos() */ -static Array cmdline_block; ///< currently displayed block of context +/// currently displayed block of context +static Array cmdline_block = ARRAY_DICT_INIT; /* * Type used by call_user_expand_func @@ -2990,6 +2991,7 @@ void ui_ext_cmdline_block_append(int indent, const char *line) void ui_ext_cmdline_block_leave(void) { api_free_array(cmdline_block); + cmdline_block = (Array)ARRAY_DICT_INIT; ui_call_cmdline_block_hide(); } |