Merge branch 'master' into fix-multibyte-path

This commit is contained in:
bravestarr
2018-04-26 21:20:33 +08:00
committed by GitHub
3 changed files with 17 additions and 11 deletions

View File

@@ -288,7 +288,7 @@ function! s:Bookmark.str()
let pathStr = self.path.str({'format': 'UI'})
if strdisplaywidth(pathStr) > pathStrMaxLen
while strdisplaywidth(pathStr) > pathStrMaxLen && strchars(pathStr) > 0
let pathStr = substitute(pathStr, '.\{1}', '', '')
let pathStr = substitute(pathStr, '^.', '', '')
endwhile
let pathStr = '<' . pathStr
endif