diff options
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 2 |
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 |