changeset 8297:4929eca308b7 v7.4.1441

commit https://github.com/vim/vim/commit/e26643e6bcd6c6c42f5eae78cee2e7950cd3f629 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 27 21:53:02 2016 +0100 patch 7.4.1441 Problem: Using empty name instead of no name for channel buffer. Solution: Remove the empty name.
author Christian Brabandt <cb@256bit.org>
date Sat, 27 Feb 2016 22:00:04 +0100
parents 76924fadd96f
children 9009b7253e6a
files src/channel.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1441,
+/**/
     1440,
 /**/
     1439,