[patch] Tab line not redrawn when 'bt' changed

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch] Tab line not redrawn when 'bt' changed

Lech Lorens
Problem: tab line is not updated when the value of 'bt' is changed.
To reproduce:

$ vim -c 'split | wincmd T | normal o'

By hand perform:
:set bt=nofile

Observe that the window's title in the status line reflects the change
- "[Scratch]", but the tab line still shows '| + [No Name] | + [No Name] |'.

:redraw!
Only now the tab line shows '| [Scratch] | [Scratch] |'.

The attached patch fixes the problem.

--
Cheers,
Lech

--
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php

set-bt-tabline-redraw.patch (325 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [patch] Tab line not redrawn when 'bt' changed

Bram Moolenaar

Lech Lorens wrote:

> Problem: tab line is not updated when the value of 'bt' is changed.
> To reproduce:
>
> $ vim -c 'split | wincmd T | normal o'
>
> By hand perform:
> :set bt=nofile
>
> Observe that the window's title in the status line reflects the change
> - "[Scratch]", but the tab line still shows '| + [No Name] | + [No Name] |'.
>
> :redraw!
> Only now the tab line shows '| [Scratch] | [Scratch] |'.
>
> The attached patch fixes the problem.

Thanks Lech, I'll put it in the queue.

--
Don't drink and drive.  You might hit a bump and spill your beer.

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php