Hirohito Higashi wrote:

> Hi Bram and list,
> 
> How to reproduce:
> - Run vanilla Vim with five tab-pages.
>   $ vim -Nu NONE -p 1 2 3 4 5
> - Edit the first tab-page's buffer and move to current line three.
>   o<CR>3<Esc>
> - Type the following command.
>   :.tabnext
> 
> Expected behavior:
> - Stay first tab-page.
> 
> Actual behavior:
> - Go to the third tab-page.
> 
> 
> I wrote a patch fixed this issue and other minor issues.
> And some improvements.
> 
> Fixed minor issues:
> - `:tabmove 99` doesn't result in an error. (Even though `:99tabmove` gets an 
> error)
> - Also `:tabmove -+`, `:tabmove +3-`.
> 
> Improvements:
> - Support post count for `:tabnext`, `:tabclose`, `:tabonly`.
> - Also `:tabprevious`, `:tabNext`. But accept only numbers. (See `:h 
> :tabprevious`)
> - Add more tests for tab-page command.
> 
> Patch is attached.
> Check out and include this please.

Thanks!  There might be a few more problems like this,  There is a todo
item, but it's quite broad:

        Use ADDR_OTHER instead of ADDR_LINES for many more commands.
        Add tests for using number larger than number of lines in buffer.

> PS
> This issue was reported by Ken Hamada (a.k.a. itchyny).

-- 
MESKIMEN'S LAW
    There's never time to do it right, but always time to do it over.

 /// 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.

Raspunde prin e-mail lui