On Monday, October 22, 2012 9:57:12 AM UTC-5, [email protected] wrote:
> Status: New
> 
> Owner: ----
> 
> Labels: Type-Defect Priority-Medium
> 
> 
> 
> New issue 88 by [email protected]: fn; jumps to top of document
> 
> http://code.google.com/p/vim/issues/detail?id=88
> 
> 
> 
> What steps will reproduce the problem?
> 
> 1. Open a text file with more than one line
> 
> 2. Move the cursor to a line with more than one 'n' character
> 
> 3. push fn;
> 
> 
> 
> What is the expected output? What do you see instead?
> 
> 
> 
> The cursor should be at the second 'n' character. Instead, the screen  
> 
> blinks and the cursor jumps to the top of the document.
> 
> 
> 
> What version of the product are you using? On what operating system?
> 
> 
> 
> I'm using vim 7.3.709 on Arch Linux
> 
> 
> 
> Please provide any additional information below.
> 
> 
> 
> Issue appears first with 7.3.704

I verify this issue on Windows XP gvim 7.3.709. Vim additionally beeps when 
pressing ;. Indeed any other movement command like l or n shows similar 
behavior. After the initial fn, Vim seems to be waiting for further input, as 
if in operator-pending mode or something. My cursor goes from a full black box 
to a half-height black box.

This is the second issue reported due to recent patches which takes effect only 
for the specific character 'n' or 'N'.

Looking at patch 704, I notice that while the first bit of code added is within 
a check that the first character if a command is 'g', the second bit of code 
does not. Since patch 704 is supposed to fix the gn and gN commands only, this 
is suspect to me.

In other words, does the second bit of code added in patch 704, at line 1089 of 
normal.c, need to also check that ca.cmdchar == 'g'?

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

Raspunde prin e-mail lui