Hi,
On Wed, Nov 12, 2008 at 13:08, Bram Moolenaar wrote:
> Francois Ingelrest wrote:
>
>> Hi all,
>>
>> When I do the following:
>> 1. vim -u NONE -U NONE foo.c
>> 2. :tabnew
>> 3. :tabprev
>> 4. :saveas bar.c
>>
>> The tabline is not refreshed, and the current tab is still named
>> foo.c. Switching to the other tab correctly refreshed the first tab,
>> which is then renamed bar.c (as expected).
>>
>> This is with Vim 7.2.30 on Ubuntu 8.10.
>
> One more for the todo list...
Here's a patch that hopefully fixes this bug.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
Index: ex_cmds.c
===================================================================
RCS file: /cvsroot/vim/vim7/src/ex_cmds.c,v
retrieving revision 1.118
diff -u -r1.118 ex_cmds.c
--- ex_cmds.c 13 Jan 2009 15:58:01 -0000 1.118
+++ ex_cmds.c 1 Feb 2009 09:32:55 -0000
@@ -2703,11 +2703,16 @@
retval = buf_write(curbuf, ffname, fname, eap->line1, eap->line2,
eap, eap->append, eap->forceit, TRUE, FALSE);
- /* After ":saveas fname" reset 'readonly'. */
+ /* After ":saveas fname" reset 'readonly' and redraw tabs. */
if (eap->cmdidx == CMD_saveas)
{
if (retval == OK)
+ {
curbuf->b_p_ro = FALSE;
+#ifdef FEAT_WINDOWS
+ redraw_tabline = TRUE;
+#endif
+ }
/* Change directories when the 'acd' option is set. */
DO_AUTOCHDIR
}