summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-27 21:53:02 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-27 21:53:02 +0100
commite26643e6bcd6c6c42f5eae78cee2e7950cd3f629 (patch)
treecf7b70fc4f0800c1ede3041c19fa4caf0c2a24a4 /src/channel.c
parentfefecb0fbe14c44d46f91036d76bbb6c28162da8 (diff)
downloadvim-e26643e6bcd6c6c42f5eae78cee2e7950cd3f629.zip
patch 7.4.1441
Problem: Using empty name instead of no name for channel buffer. Solution: Remove the empty name.
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channel.c b/src/channel.c
index 0721ebede..da76cbe82 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -794,7 +794,7 @@ find_buffer(char_u *name)
buf = buflist_findname(name);
if (buf == NULL)
{
- buf = buflist_new(name == NULL ? (char_u *)"" : name,
+ buf = buflist_new(name == NULL || *name == NUL ? NULL : name,
NULL, (linenr_T)0, BLN_LISTED);
buf_copy_options(buf, BCO_ENTER);
#ifdef FEAT_QUICKFIX