Hi Jim!

2016-11-26(Sat) 0:41:46 UTC+9 Jim Stewart:
> I'm creating a session with mksession, and when I restore the session, if the 
> first tab was empty ([No Name]), it's gone in the restored session. Other 
> empty tabs are restored fine; it seems to only be the first tab that's lost. 
> If there are multiple "leading" empty tabs, it's still only the first one 
> that disappears.
> 
> I'm using this with vim -u NONE so there is zero config and no plugins, but I 
> get the same behavior with my normal config. Affects versions 7.3 and 8.0.52.
> 
> I'm using the default sessionoptions in all cases: 
> blank,buffers,curdir,folds,options,tabpages,winsize.
> 
> Steps to reproduce:
> 
> $ vim -u NONE
> :tabnew
> :e foo.txt
> :w
> :tabnew
> :mksession
> :qa
> $ vim -u NONE -S Session.vim
> 
> 
> The tabline now shows foo.txt | [No Name]. Expected [No Name] | foo.txt | [No 
> Name].

I can reproduce it.
And I wrote a patch for this issue. (Attached)
Could you please check this patch?
When issue has been resolved, I'll add a test later.

--
Best regards,
Hirohito Higashi (a.k.a. h_east)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 439467c..ca4133a 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -11091,6 +11091,8 @@ makeopens(
 	    }
 	    if (tabnr > 1)
 		need_tabnew = TRUE;
+	    else if (put_line(fd, "new") == FAIL)
+		return FAIL;
 	}
 
 	/*

Raspunde prin e-mail lui