Loading ...
Sorry, an error occurred while loading the content.

68668Re: Issue 121 in vim: cursor jumps to the end of closed fold when executing a register

Expand Messages
  • Christian Brabandt
    Mar 12, 2013

      On Di, 12 Mär 2013, Christian Brabandt wrote:

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

      Attached is a patch

      Wer freudig ist, hat zu allen Dingen den rechten Stand.
      -- Romano Guardini

      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.
    • Show all 7 messages in this topic