Hi, On Thu, Mar 21, 2019 at 1:35 PM Romain Lafourcade <[email protected]> wrote: > > getjumplist() was added in #2609. It purports to allow people to get a > usable representation of the jumplist but it fails to do so. > > First, getjumplist()[0] is inverted compared to :jumps, with jump 0 > being at [-1] and so on. Yes we can reverse() it to get the expected > representation but that shouldn't be necessary. > > Second, the items in getjumplist()[0] don't contain the most important > information: the jump number. Without that information, "getting the > jump list", is debatably useful because we don't get any actual "jump" > in the returned list. >
The attached patch adds a jump number to each entry in the list returned by getjumplist(). - Yegappan > Third, the index of those items can't be used to infer actual jump > numbers because jump #0 can be anywhere in the list and have relative > numbers above and below. > > Fourth, getjumplist()[1] is the last position reachable with <C-o> but > the newest position reachable with <C-i> is not there. > -- -- 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.
jumpnr.diff
Description: Binary data
