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.

-- 
What is the difference between a professional and an amateur?
The ark was built by an amateur; professionals gave us the Titanic.

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

Raspunde prin e-mail lui