Explorar o código

Replace tabs with spaces when echoing a message

Fixes #4182
Boris Staletic hai 1 ano
pai
achega
6a412360d2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      python/ycm/vimsupport.py

+ 1 - 0
python/ycm/vimsupport.py

@@ -751,6 +751,7 @@ def PostVimMessage( message, warning = True, truncate = False ):
     vim_width = GetIntValue( '&columns' )
 
     message = message.replace( '\n', ' ' )
+    message = message.replace( '\t', ' ' )
     if len( message ) >= vim_width:
       message = message[ : vim_width - 4 ] + '...'