comparison src/diff.c @ 14019:dc67449d648c v8.1.0027

patch 8.1.0027: difficult to make a plugin that feeds a line to a job commit https://github.com/vim/vim/commit/f273245f6433d5d43a5671306b520a3230c35787 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 3 14:47:35 2018 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Jun 2018 15:00:07 +0200
parents 378f9f8e6d8f
children 195e8b1fcbbf
comparison
equal deleted inserted replaced
14018:c3064aaf53fb 14019:dc67449d648c
2139 nv_diffgetput(int put, long count) 2139 nv_diffgetput(int put, long count)
2140 { 2140 {
2141 exarg_T ea; 2141 exarg_T ea;
2142 char_u buf[30]; 2142 char_u buf[30];
2143 2143
2144 #ifdef FEAT_JOB_CHANNEL
2145 if (bt_prompt(curbuf))
2146 {
2147 vim_beep(BO_OPER);
2148 return;
2149 }
2150 #endif
2144 if (count == 0) 2151 if (count == 0)
2145 ea.arg = (char_u *)""; 2152 ea.arg = (char_u *)"";
2146 else 2153 else
2147 { 2154 {
2148 vim_snprintf((char *)buf, 30, "%ld", count); 2155 vim_snprintf((char *)buf, 30, "%ld", count);