Martin Kunev wrote:

> I'm using vim 7.4.1229 on Gentoo.
> 
> In input mode, navigating near braces changes cursor position unexpectedly.
> 
> I enter the following code in a new file:
> 
> if (a)
> {
> }
> 
> In input mode, navigating up from column 2 on the last line moves the
> cursor to column 1 on the previous line (before the curly brace).
> 
> Commenting the lines related to getcurpos() in matchparen.vim fixes
> the problem.

I see the problem.  It looks like it's not caused by matchparen, but
getcurpos() returns the wrong curswant when doing "a" on the "}".
If you get there in another way it usually works OK.

OK, found the problem, will send out a patch.

-- 
hundred-and-one symptoms of being an internet addict:
200. You really believe in the concept of a "paperless" office.

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