fix Issue #761
This commit is contained in:
parent
2c92e80969
commit
436a834758
@ -311,7 +311,7 @@ def EchoText( text, log_as_message = True ):
|
|||||||
# Echos text but truncates it so that it all fits on one line
|
# Echos text but truncates it so that it all fits on one line
|
||||||
def EchoTextVimWidth( text ):
|
def EchoTextVimWidth( text ):
|
||||||
vim_width = GetIntValue( '&columns' )
|
vim_width = GetIntValue( '&columns' )
|
||||||
truncated_text = str( text )[ : int( vim_width * 0.9 ) ]
|
truncated_text = text.encode('utf-8')[ : int( vim_width * 0.9 ) ]
|
||||||
truncated_text.replace( '\n', ' ' )
|
truncated_text.replace( '\n', ' ' )
|
||||||
|
|
||||||
old_ruler = GetIntValue( '&ruler' )
|
old_ruler = GetIntValue( '&ruler' )
|
||||||
|
Loading…
Reference in New Issue
Block a user