Fix ambiwidth=double again and make sure it doesn't break again
This commit is contained in:
parent
069224e28d
commit
b34ccd679d
4 changed files with 735 additions and 1 deletions
|
|
@ -12,7 +12,10 @@ def SignDefined( name ):
|
|||
return False
|
||||
|
||||
|
||||
def DefineSign( name, text, texthl, col = 'right', **kwargs ):
|
||||
def DefineSign( name, text, double_text, texthl, col = 'right', **kwargs ):
|
||||
if utils.GetVimValue( vim.options, 'ambiwidth', '' ) == 'double':
|
||||
text = double_text
|
||||
|
||||
if col == 'right':
|
||||
if int( utils.Call( 'strdisplaywidth', text ) ) < 2:
|
||||
text = ' ' + text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue