Sung Pae wrote:
> On Sat, Feb 09, 2013 at 02:10:36PM +0100, Bram Moolenaar wrote:
> > I rather fix the problem than updating the documentation.
> Sounds great; I mispredicted your response.
> > You say you read the source code, can you pinpoint why the cursor is
> > not restored when using :normal?
> :normal commands update curwin->w_curswant and curwin->w_set_curswant,
> which beginline() uses to set the cursor position. op_reindent calls
> beginline() with the BL_SOL flag set, so this bug only appears when
> 'nostartofline' is set (which I didn't notice before).
> Attached patch simply saves and restores both settings after the
> 'indentexpr' evaluation.
Sounds right. Thanks for the patch!
The Law, in its majestic equality, forbids the rich, as well as the
poor, to sleep under the bridges, to beg in the streets, and to steal
bread. -- Anatole France
/// Bram Moolenaar -- Bram@...
/// 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 vim_dev+unsubscribe@...
For more options, visit https://groups.google.com/groups/opt_out.