virtcol() fails to deliver the correct screen column if showbreak is set to a
value other than "" and wrap is on, i.e. it doesn't take into account the
length of the string that showbreak is set to.
To reproduce:
1) Start a "bare" gvim with a text containing a long line.
2) :set nowrap
3) Position the cursor at the beginning of a word towards the end of the line.
4) :echo virtcol(".")
5) :set wrap " Make sure the cursor is in a 'wrapped' line
6) :echo virtcol(".") " Returns the same value
7) :set showbreak=(-->)
8) :echo virtcol(".") " Will return a distinct value
col(".")'s return value would not change, but it's not Unicode (UTF-8) proof...
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.