Wednesday, October 2, 2013

When searching for a single digit gn/gN visually selects too much

I think I may have found a bug, I have list the steps to reproduce it.

1. open a new buffer :tabe or :e test
2. put two single digits on different lines
3. search using the regex '\d' (without quotes)
4. put your cursor before or on the first digit then press gn

I've tested this on vim 7.4 and 7.3.

What happens on my end is both numbers, anything (newlins and characters) in between the two numbers are visually selected.

What I think should happen is just the first number should be visually selected.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment