4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: A ":tabedit" command that results in the "swap file exists" dialog
12 and selecting "abort" doesn't close the new tab. (Al Budden)
13 Solution: Pass "old_curwin" to do_exedit().
17 *** ../vim-7.1.212/src/ex_docmd.c Sun Jan 6 20:05:36 2008
18 --- src/ex_docmd.c Wed Jan 9 20:11:13 2008
21 : eap->addr_count == 0 ? 0
22 : (int)eap->line2 + 1) != FAIL)
24 ! do_exedit(eap, NULL);
26 /* set the alternate buffer for the window we came from */
27 if (curwin != old_curwin
29 : eap->addr_count == 0 ? 0
30 : (int)eap->line2 + 1) != FAIL)
32 ! do_exedit(eap, old_curwin);
34 /* set the alternate buffer for the window we came from */
35 if (curwin != old_curwin
36 *** ../vim-7.1.212/src/version.c Wed Jan 9 10:13:24 2008
37 --- src/version.c Wed Jan 9 20:29:09 2008
41 { /* Add new patch number below this line */
47 Q: What do you call a fish without an eye?
49 Q: What do you call a deer with no eyes?
51 Q: What do you call a deer with no eyes and no legs?
54 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
55 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
56 \\\ download, build and distribute -- http://www.A-A-P.org ///
57 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///