Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
11958:052270a67371 | 11959:91a26b7a4119 |
---|---|
59 int bt_nofile(buf_T *buf); | 59 int bt_nofile(buf_T *buf); |
60 int bt_dontwrite(buf_T *buf); | 60 int bt_dontwrite(buf_T *buf); |
61 int bt_dontwrite_msg(buf_T *buf); | 61 int bt_dontwrite_msg(buf_T *buf); |
62 int buf_hide(buf_T *buf); | 62 int buf_hide(buf_T *buf); |
63 char_u *buf_spname(buf_T *buf); | 63 char_u *buf_spname(buf_T *buf); |
64 void switch_to_win_for_buf(buf_T *buf, win_T **save_curwinp, tabpage_T **save_curtabp, bufref_T *save_curbuf); | |
65 void restore_win_for_buf(win_T *save_curwin, tabpage_T *save_curtab, bufref_T *save_curbuf); | |
64 int find_win_for_buf(buf_T *buf, win_T **wp, tabpage_T **tp); | 66 int find_win_for_buf(buf_T *buf, win_T **wp, tabpage_T **tp); |
65 void buf_addsign(buf_T *buf, int id, linenr_T lnum, int typenr); | 67 void buf_addsign(buf_T *buf, int id, linenr_T lnum, int typenr); |
66 linenr_T buf_change_sign_type(buf_T *buf, int markId, int typenr); | 68 linenr_T buf_change_sign_type(buf_T *buf, int markId, int typenr); |
67 int buf_getsigntype(buf_T *buf, linenr_T lnum, int type); | 69 int buf_getsigntype(buf_T *buf, linenr_T lnum, int type); |
68 linenr_T buf_delsign(buf_T *buf, int id); | 70 linenr_T buf_delsign(buf_T *buf, int id); |