comparison src/channel.c @ 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 ac0c43e7af20
children aec8f8ce8e4c
comparison
equal deleted inserted replaced
8296:76924fadd96f 8297:4929eca308b7
792 792
793 if (name != NULL && *name != NUL) 793 if (name != NULL && *name != NUL)
794 buf = buflist_findname(name); 794 buf = buflist_findname(name);
795 if (buf == NULL) 795 if (buf == NULL)
796 { 796 {
797 buf = buflist_new(name == NULL ? (char_u *)"" : name, 797 buf = buflist_new(name == NULL || *name == NUL ? NULL : name,
798 NULL, (linenr_T)0, BLN_LISTED); 798 NULL, (linenr_T)0, BLN_LISTED);
799 buf_copy_options(buf, BCO_ENTER); 799 buf_copy_options(buf, BCO_ENTER);
800 #ifdef FEAT_QUICKFIX 800 #ifdef FEAT_QUICKFIX
801 clear_string_option(&buf->b_p_bt); 801 clear_string_option(&buf->b_p_bt);
802 buf->b_p_bt = vim_strsave((char_u *)"nofile"); 802 buf->b_p_bt = vim_strsave((char_u *)"nofile");