> Call it display cell, I don't care. I think the user would simply call
> it characters.
No if he is working with fullwidth ones. mb_string2cells outputs displays
cells, and documentation uses both terms for different things. Characters here
mean “unicode codepoint” (ref: :h strchars()).
> I don't mind. But in the failing case, it is right obvious, why it
> doesn't work, if you use a vim without multibyte feature, in the other
> case it isn't.
If I was writing a vim plugin I would be already much fond of having to write
if (v:version==703 && !has('patch713') || v:version<703) ||
!has('multibyte')
" Use strdisplaywidth workaround. Respects versions without it because
" I have its emulation using another :if, similar to what is now done
" with shiftwidth()
else
" Use printf('%S')
endif
. When 7.3.713 will go to history all you should do is to purge first branch
and new plugin authors just should not care, in the current state neither can
be done due to has() condition.
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php