Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 277 by [email protected]: wrong virtcol("']") if last yanked
character is non-ASCII
https://code.google.com/p/vim/issues/detail?id=277
Assume you have a buffer with exactly two lines. The first line containing
exactly one character, e.g. U+2502 (│), the second line containing exactly
one character, e.g. U+0041 (a):
line 1: │
line 2: a
What steps will reproduce the problem?
1. Place the cursor at line 1, virtcol 1
2. Start visual mode and yank one character and echo the virtcol of the
last yanked part, i.e. type:
vy:echo virtcol("']")
The answer will be 2, although line 1 has no second virt-column.
For the ASCII-character you get a different answer: Doing the same thing
with line 2, virtcol 1
vy:echo virtcol("']")
will give as answer 1.
What is the expected output? What do you see instead?
Expected output: in both cases "1", because there is only one virtual
column in every line. Instead I get virtcol 2 in the first line.
What version of the product are you using? On what operating system?
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 18 2014 23:29:48)
Included patches: 1-207, 209-481
OS: Fedora 20
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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.