68667Re: Issue 121 in vim: cursor jumps to the end of closed fold when executing a register
- Mar 12, 2013Hi glts!
On Di, 12 Mär 2013, glts wrote:
> On Tuesday, March 12, 2013 5:22:12 PM UTC+1, Christian Brabandt wrote:
> > I don't see this with Vim. Can you reproduce the issue with vim -u
> > NONE -N ?
> I can reproduce this on the current Vim version 7.3.854 on Ubuntu Linux
Ah, I see, this only happens when sourcing as a script. The problem here
is, that there is a subtle difference between the :@ command and the
:normal! @ command. When using the :@ command, the register will be
called for the range of the folded lines and therefore implicitly sets
the range to the first and lastline of the fold and then the ex_at()
function explicitly sets the cursorline to the endline of the register.
We could change it, but the documentation explicitly states, that in the
future the register will be executed for the range given, so we should
rather just implement this ;)
Mit freundlichen Grüßen
Geistliche sind daran interessiert, die Völker in Unwissenheit zu
erhalten, man würde sonst, da das Evangelium einfach ist, ihnen sagen:
Wir wissen das alles so gut wie ihr.
-- Charles-Louis Baron de Montesquieu (Gedanken, Über die Religion)
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.
- << Previous post in topic Next post in topic >>