Am 19.07.2017 um 22:22 schrieb Bram Moolenaar:

Andy Wokula wrote:

Looks like Patch 7.4.709 isn't ok yet, even the test is wrong:

    " starting at first tab page (see link):
    tabmove 5
    call assert_equal(5, tabpagenr())

should be
    call assert_equal(6, tabpagenr())

because it's supposed to move the tab page to *after* tab page number 5;

when starting at a higher tab page (e.g. 9) it works ok (as it used to be in 
older Vims),
but the test is missing, something like:

     normal! 9gt
     tabmove 5
     call assert_equal(6, tabpagenr())

https://github.com/vim/vim/blob/master/src/testdir/test_tabpage.vim#L83
(at v8.0.0734)

In my idea it's OK.  Say you start with these tab pages:

        1  one
        2  two
        3  three
        4  four
        5  five

Now you do ":tabmove 3", so it move to after "three".  Result:

        1  two
        2  three
        3  one
        4  four
        5  five

So the current tab is now 3.  It moves to after "three", and since all
the tab pages move left one place you end up at tab page 3.

To me, that interpretation feels weird.
I think the changed behavior was just an undesired side effect of the patch
which just nobody noticed so far.

It was different before, and more logical IMHO,
because one could use a formula for the target tab page that
didn't depend on the number of the current tab page.

And: if there are two possible interpretations, we should prefer
the backwards compatible one, right?
(I mean backwards compatible to before 7.4.709)

--
Andy

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui