summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-07 15:45:32 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-07 15:45:32 +0200
commit261f346f8154c0ec7094a4a211c653c74e9f7c2e (patch)
treeae8f30b11e3a637d1c69bac234d0edd721d4a542 /src/channel.c
parenta3a124627d2eb9d36e3dc3757429d87e041f8c0b (diff)
downloadvim-git-261f346f8154c0ec7094a4a211c653c74e9f7c2e.tar.gz
patch 8.1.2001: some source files are too bigv8.1.2001
Problem: Some source files are too big. Solution: Move buffer and window related functions to evalbuffer.c and evalwindow.c. (Yegappan Lakshmanan, closes #4898)
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/channel.c b/src/channel.c
index b4493cf75..e4dbcf603 100644
--- 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, jobopt_T *opt)
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, jobopt_T *opt)
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)
{