mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	 f5588ee896
			
		
	
	f5588ee896
	
	
	
		
			
			Let :wincmd command accept a count like what its documentation suggests.
Previously it could only accept a range, which led to some ambiguity on
which attribute should be used when executing :wincmd using nvim_cmd.
Closes #19662.
Also fix a typo in a related Vim test:
vim-patch:9.0.0223: typo in diffmode test
Problem:    Typo in diffmode test.
Solution:   Fix the typo. (closes vim/vim#10932)
5fd6ab820b
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			320 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			320 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| local helpers = require("test.functional.helpers")(after_each)
 | |
| local clear = helpers.clear
 | |
| local eq = helpers.eq
 | |
| local funcs = helpers.funcs
 | |
| local command = helpers.command
 | |
| 
 | |
| it(':wincmd accepts a count', function()
 | |
|   clear()
 | |
|   command('vsplit')
 | |
|   eq(1, funcs.winnr())
 | |
|   command('wincmd 2 w')
 | |
|   eq(2, funcs.winnr())
 | |
| end)
 |