Mercurial > vim
diff src/channel.c @ 18010:cf8e0c7e0cb9 v8.1.2001
patch 8.1.2001: some source files are too big
Commit: https://github.com/vim/vim/commit/261f346f8154c0ec7094a4a211c653c74e9f7c2e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 7 15:45:32 2019 +0200
patch 8.1.2001: some source files are too big
Problem: Some source files are too big.
Solution: Move buffer and window related functions to evalbuffer.c and
evalwindow.c. (Yegappan Lakshmanan, closes #4898)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 Sep 2019 16:00:03 +0200 |
parents | 9fb236d0f386 |
children | a2870e6f5b45 |
line wrap: on
line diff
--- a/src/channel.c +++ b/src/channel.c @@ -1036,7 +1036,7 @@ prepare_buffer(buf_T *buf) * Returns NULL if there is something very wrong (error already reported). */ static buf_T * -find_buffer(char_u *name, int err, int msg) +channel_find_buffer(char_u *name, int err, int msg) { buf_T *buf = NULL; buf_T *save_curbuf = curbuf; @@ -1126,7 +1126,7 @@ channel_set_options(channel_T *channel, if (opt->jo_set2 & JO2_OUT_MSG) msg = opt->jo_message[PART_OUT]; - buf = find_buffer(opt->jo_io_name[PART_OUT], FALSE, msg); + buf = channel_find_buffer(opt->jo_io_name[PART_OUT], FALSE, msg); } if (buf != NULL) { @@ -1173,7 +1173,7 @@ channel_set_options(channel_T *channel, if (opt->jo_set2 & JO2_ERR_MSG) msg = opt->jo_message[PART_ERR]; - buf = find_buffer(opt->jo_io_name[PART_ERR], TRUE, msg); + buf = channel_find_buffer(opt->jo_io_name[PART_ERR], TRUE, msg); } if (buf != NULL) {