From 4813ad48cd12a03ca50c01ac1b20518bf4df57f2 Mon Sep 17 00:00:00 2001 From: erw7 Date: Mon, 20 May 2019 11:57:45 +0900 Subject: vim-patch:8.1.0027: difficult to make a plugin that feeds a line to a job Problem: Difficult to make a plugin that feeds a line to a job. Solution: Add the nitial code for the "prompt" buftype. https://github.com/vim/vim/commit/f273245f6433d5d43a5671306b520a3230c35787 --- src/nvim/buffer_defs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nvim/buffer_defs.h') diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index a0379740b6..e3e036f91c 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -791,6 +791,9 @@ struct file_buffer { // are not used! Use the B_SPELL macro to // access b_spell without #ifdef. + char_u *b_prompt_text; // set by prompt_setprompt() + Callback b_prompt_callback; // set by prompt_setcallback() + synblock_T b_s; // Info related to syntax highlighting. w_s // normally points to this, but some windows // may use a different synblock_T. -- cgit From f320db345070221487797ed5ab36249b84eba007 Mon Sep 17 00:00:00 2001 From: erw7 Date: Thu, 23 May 2019 07:08:40 +0900 Subject: vim-patch:8.1.0070: missing part of the changes for prompt_setinterrupt() Problem: Missing part of the changes for prompt_setinterrupt(). Solution: Add the missing changes. https://github.com/vim/vim/commit/222cd20e2662e7478cfe42b78cc4f1c153ca819d --- src/nvim/buffer_defs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nvim/buffer_defs.h') diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index e3e036f91c..9cdf36e4ed 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -793,6 +793,9 @@ struct file_buffer { char_u *b_prompt_text; // set by prompt_setprompt() Callback b_prompt_callback; // set by prompt_setcallback() + Callback b_prompt_interrupt; // set by prompt_setinterrupt() + int b_prompt_insert; // value for restart_edit when entering + // a prompt buffer window. synblock_T b_s; // Info related to syntax highlighting. w_s // normally points to this, but some windows -- cgit