Michael Hwang wrote:

> I think I've found a small bug with the gF command.
> 
> The gF command allows one to jump to the file and line number under the 
> cursor. However, if the current file can't be abandoned (e.g. there are 
> unwritten changes), the "jump to file" part fails, but the "jump to line 
> number" part still executes. As a result, the cursor will unexpectedly move 
> in the current file, even though the command failed.
> 
> The attached patch fixes this so that the "jump to line number" action is 
> only done if the new file is successfully opened.

Thanks for catching this problem and proposing a fix.

I'll also add a test.

-- 
I used to wonder about the meaning of life.  But I looked it
up in the dictionary under "L" and there it was - the meaning
of life.  It was less than I expected.              - Dogbert

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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