commit | f273245f6433d5d43a5671306b520a3230c35787 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jun 03 14:47:35 2018 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jun 03 14:47:35 2018 +0200 |
tree | 958293fed4c59ee0cb91a491c8c0e32aa0e618c2 | |
parent | 33c5e9fa7af935c61a8aac461b9664c501003440 [diff] [blame] |
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.
diff --git a/src/diff.c b/src/diff.c index cc9e6de..c67654f 100644 --- a/src/diff.c +++ b/src/diff.c
@@ -2141,6 +2141,13 @@ 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