Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 235 by [email protected]: Relative Numbering is Incorrect After Line-Wise Selection Followed by Yank
http://code.google.com/p/vim/issues/detail?id=235

What steps will reproduce the problem?

1. set relative numbering on (:set rnu).
2. use 'V' (uppercase) to make a selection of several lines (more than one line). Select lines by moving down, so that the text cursor is at the bottom of the visually-selected area.
3. press 'y' to do a yank.
4. following the yank, observe that the text cursor is now positioned on the first line of the previously selected area. This is usual behavior.

What is the expected output?

The lines are yanked, and relative numbering is updated for the lines above and below the previously-selected area, to reflect the fact that the text cursor jumped to the top of the selected-lines area after the yank.

What do you see instead?

The relative numbering is wrong. Although the text cursor jumped to the top of the selected area when the yank was done, relative numbers were not updated. They are stale.

If the text cursor is moved at all (via j, k for example) relative numbering immediately updates, and the proper relative numbers now show.


What version of the product are you using? On what operating system?

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 15 2014 11:22:43)
MS-Windows 32-bit GUI version
Included patches: 1-326
Huge version with GUI.


Please provide any additional information below.

Also tried using gvim -u NONE, same result.

I have an earlier gVim 7.4 patched to level 86 (only), and the problem does *not* occur there. I also have a somewhat later gVim 7.4 patched to 295, and the problem *does* occur there. So I conclude the issue was introduced somewhere between patches 86 and 295.

Thanks
-- David Kotchan


--
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.

Raspunde prin e-mail lui