diff options
author | erw7 <erw7.github@gmail.com> | 2019-05-23 06:38:02 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2020-02-12 15:30:06 +0900 |
commit | fe395ae210914eeec0f8592268b1960cb1b819b8 (patch) | |
tree | a4957f0f313a279b164036e70c0b4427ead27977 /src/nvim/buffer.c | |
parent | 783aecd501de2719f3059252e8444ef00c7c3d4a (diff) | |
download | rneovim-fe395ae210914eeec0f8592268b1960cb1b819b8.tar.gz rneovim-fe395ae210914eeec0f8592268b1960cb1b819b8.tar.bz2 rneovim-fe395ae210914eeec0f8592268b1960cb1b819b8.zip |
vim-patch:8.1.0069: cannot handle pressing CTRL-C in a prompt buffer
Problem: Cannot handle pressing CTRL-C in a prompt buffer.
Solution: Add prompt_setinterrupt().
https://github.com/vim/vim/commit/0e5979a6d491f68c4a8c86fab489016919329a6b
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index a9b37af917..790609ab94 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -765,6 +765,7 @@ static void free_buffer(buf_T *buf) tv_dict_unref(buf->additional_data); xfree(buf->b_prompt_text); callback_free(&buf->b_prompt_callback); + callback_free(&buf->b_prompt_interrupt); clear_fmark(&buf->b_last_cursor); clear_fmark(&buf->b_last_insert); clear_fmark(&buf->b_last_change); @@ -1879,6 +1880,7 @@ buf_T * buflist_new(char_u *ffname, char_u *sfname, linenr_T lnum, int flags) } buf->b_prompt_callback.type = kCallbackNone; + buf->b_prompt_interrupt.type = kCallbackNone; buf->b_prompt_text = NULL; return buf; |