Yegappan wrote:
> The getjumplist() function currently returns a list with two entries.
> The first entry is a list of jump locations and the second entry is
> the index of the current jump location. I think instead of returning
> a list with hard-coded indexes, it is better to return a dictionary.
>
> Does anyone see an issue in changing the return value to a
> dictionary with two keys ('items' and 'curidx')? I know this is
> not backward compatible with the 8.1 release. But I am not
> sure whether any of the plugins are currently using this
> function.
With the current implementation you can do:
:let [thelist, theindex] = getjumplist()
Can't do that when it returns a dictionary.
--
If you had to identify, in one word, the reason why the
human race has not achieved, and never will achieve, its
full potential, that word would be "meetings."
/// 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.