7.3e beta - tabline renders incorrectly with full-width character and custom highlight group

8 views
Skip to first unread message

bootleq

unread,
Aug 11, 2010, 12:30:53 PM8/11/10
to vim...@vim.org
When using custom function to set 'tabline' option, which has each tab like:
'%2T%#LineNr#%#TabLine#' . fileModified . filename

then start modify content of the first tab will cause next tab with
full-width filename render incorrectly (an empty column might appear).
It can be solved by switch to another tab, or press <C-L>, clear and redraw.

Please see the attachment to reproduce it.
1. vim -u NONE tabline_render.vim
2. :so %
3. :tabnew 中文測試
4. back to the tab "tabline_render.vim" and do some edit.
Before the tab "中文測試" should appear an empty column.

Tested on Unix and Cygwin.
And it looks fine in Vim 7.0 and 7.2.

tabline_render.vim

bootleq

unread,
Aug 13, 2010, 11:18:27 PM8/13/10
to vim_dev
The problem seems disappeared in gVim 7.3f, but still there in
terminal Vim.
Tested on Cygwin with MinTTY.
>  tabline_render.vim
> 1K檢視下載
Reply all
Reply to author
Forward
0 new messages