mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	vim-patch:8.1.0241: effect of ":tabmove N" is not clear
Problem:    Effect of ":tabmove N" is not clear.
Solution:   Add a test that shows the behavior. (Christian Brabandt,
            closes vim/vim#3288)
7cc596547a
			
			
This commit is contained in:
		| @@ -107,6 +107,19 @@ function Test_tabpage() | |||||||
|   call assert_equal(4, tabpagenr()) |   call assert_equal(4, tabpagenr()) | ||||||
|   7tabmove 5 |   7tabmove 5 | ||||||
|   call assert_equal(5, tabpagenr()) |   call assert_equal(5, tabpagenr()) | ||||||
|  |  | ||||||
|  |   " The following are a no-op | ||||||
|  |   norm! 2gt | ||||||
|  |   call assert_equal(2, tabpagenr()) | ||||||
|  |   tabmove 2 | ||||||
|  |   call assert_equal(2, tabpagenr()) | ||||||
|  |   2tabmove | ||||||
|  |   call assert_equal(2, tabpagenr()) | ||||||
|  |   tabmove 1 | ||||||
|  |   call assert_equal(2, tabpagenr()) | ||||||
|  |   1tabmove | ||||||
|  |   call assert_equal(2, tabpagenr()) | ||||||
|  |  | ||||||
|   call assert_fails("99tabmove", 'E16:') |   call assert_fails("99tabmove", 'E16:') | ||||||
|   call assert_fails("+99tabmove", 'E16:') |   call assert_fails("+99tabmove", 'E16:') | ||||||
|   call assert_fails("-99tabmove", 'E16:') |   call assert_fails("-99tabmove", 'E16:') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jan Edmund Lazo
					Jan Edmund Lazo