On 12-Jul-2013 21:02 +0200, guns wrote:
> Hello,
>
> In the documentation for :jumplist, it is mentioned that
>
> You can explicitly add a jump by setting the ' mark.
>
> This is true by pressing m' and m` in normal mode, but it does not
> work by calling the equivalent :call setpos("''", getpos('.')).
>
> I am unsure if this is intentional, but if not, this patch
> addresses this issue (*pos and curwin->w_cursor were compared by
> identity, not value).
>
> I could not find an appropriate test script to append, so I took
> the liberty of adding test99.in and test99.ok.
I had noticed that, too, so changing this might break existing plugins
/ macros. On the other hand (providing that one can still use
:keepjumps call setpos("''", getpos('.'))
to get the old behavior (can you please confirm?!)), it might be more
consistent if setpos() behaves exactly like the "m" command.
-- regards, ingo
--
--
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/groups/opt_out.