Skip to content

Commit

Permalink
Merge pull request #4183 from bstaletic/echo-tab-space
Browse files Browse the repository at this point in the history
Replace tabs with spaces when echoing a message
  • Loading branch information
mergify[bot] committed Sep 10, 2023
2 parents 4f1dcf4 + 6a41236 commit c400db0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/ycm/vimsupport.py
Expand Up @@ -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 ] + '...'

Expand Down

0 comments on commit c400db0

Please sign in to comment.