summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-03 14:47:35 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-03 14:47:35 +0200
commitf273245f6433d5d43a5671306b520a3230c35787 (patch)
tree958293fed4c59ee0cb91a491c8c0e32aa0e618c2 /src/diff.c
parent33c5e9fa7af935c61a8aac461b9664c501003440 (diff)
downloadvim-git-f273245f6433d5d43a5671306b520a3230c35787.tar.gz
patch 8.1.0027: difficult to make a plugin that feeds a line to a jobv8.1.0027
Problem: Difficult to make a plugin that feeds a line to a job. Solution: Add the nitial code for the "prompt" buftype.
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/diff.c b/src/diff.c
index cc9e6de8f..c67654f62 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -2141,6 +2141,13 @@ nv_diffgetput(int put, long count)
exarg_T ea;
char_u buf[30];
+#ifdef FEAT_JOB_CHANNEL
+ if (bt_prompt(curbuf))
+ {
+ vim_beep(BO_OPER);
+ return;
+ }
+#endif
if (count == 0)
ea.arg = (char_u *)"";
else