Use strwidth over strchars() for tabline width calc
This commit is contained in:
parent
3535540bdb
commit
7fd66a3e41
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ def InitTab()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
const icon = bufname(bufnr)->g:nerdfont#find()->st.DropIfDefault(g:nerdfont#default)->st.PrependIfVisible(' ')
|
const icon = bufname(bufnr)->g:nerdfont#find()->st.DropIfDefault(g:nerdfont#default)->st.PrependIfVisible(' ')
|
||||||
const iconWidth = strchars(icon)
|
const iconWidth = strwidth(icon)
|
||||||
if width + iconWidth >= maxWidth
|
if width + iconWidth >= maxWidth
|
||||||
return [tabDisplay, width]
|
return [tabDisplay, width]
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue