From e26643e6bcd6c6c42f5eae78cee2e7950cd3f629 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 27 Feb 2016 21:53:02 +0100 Subject: patch 7.4.1441 Problem: Using empty name instead of no name for channel buffer. Solution: Remove the empty name. --- src/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/channel.c') 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 -- cgit v1.2.3