summaryrefslogtreecommitdiff
path: root/src/proto/buffer.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-04 21:37:54 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-04 21:37:54 +0200
commit6b7355a30ddd294c19cd9be924d487d592ccfae1 (patch)
tree94c51538082a4ffe2c0306e6b7422607be5e3696 /src/proto/buffer.pro
parent8e5eece8c5f22a2235edeb743d06253f6c54cfdc (diff)
downloadvim-git-6b7355a30ddd294c19cd9be924d487d592ccfae1.tar.gz
patch 8.0.0860: side effects when channel appends to a bufferv8.0.0860
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)
Diffstat (limited to 'src/proto/buffer.pro')
-rw-r--r--src/proto/buffer.pro2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proto/buffer.pro b/src/proto/buffer.pro
index a67107536..d70981dac 100644
--- 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);