diff src/proto/buffer.pro @ 11959:91a26b7a4119 v8.0.0860

patch 8.0.0860: side effects when channel appends to a buffer commit https://github.com/vim/vim/commit/6b7355a30ddd294c19cd9be924d487d592ccfae1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 4 21:37:54 2017 +0200 patch 8.0.0860: side effects when channel appends to a buffer Problem: There may be side effects when a channel appends to a buffer that is not the current buffer. Solution: Properly switch to another buffer before appending. (Yasuhiro Matsumoto, closes #1926, closes #1937)
author Christian Brabandt <cb@256bit.org>
date Fri, 04 Aug 2017 21:45:04 +0200
parents 5ceaecedbad2
children 59c1e09cf1a9
line wrap: on
line diff
--- a/src/proto/buffer.pro
+++ b/src/proto/buffer.pro
@@ -61,6 +61,8 @@ int bt_dontwrite(buf_T *buf);
 int bt_dontwrite_msg(buf_T *buf);
 int buf_hide(buf_T *buf);
 char_u *buf_spname(buf_T *buf);
+void switch_to_win_for_buf(buf_T *buf, win_T **save_curwinp, tabpage_T **save_curtabp, bufref_T *save_curbuf);
+void restore_win_for_buf(win_T *save_curwin, tabpage_T *save_curtab, bufref_T *save_curbuf);
 int find_win_for_buf(buf_T *buf, win_T **wp, tabpage_T **tp);
 void buf_addsign(buf_T *buf, int id, linenr_T lnum, int typenr);
 linenr_T buf_change_sign_type(buf_T *buf, int markId, int typenr);