mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	 61d5bd561a
			
		
	
	61d5bd561a
	
	
	
		
			
			Now with try_end() including more exception info, E5500 looks like redundant information. Adjust tests for more exception information.
		
			
				
	
	
		
			17 lines
		
	
	
		
			553 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			553 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| local helpers = require('test.functional.helpers')(after_each)
 | |
| local clear = helpers.clear
 | |
| local command = helpers.command
 | |
| local eq = helpers.eq
 | |
| local pcall_err = helpers.pcall_err
 | |
| 
 | |
| describe('gf', function()
 | |
|   before_each(clear)
 | |
| 
 | |
|   it('is not allowed when buffer is locked', function()
 | |
|     command('au OptionSet diff norm! gf')
 | |
|     command([[call setline(1, ['Xfile1', 'line2', 'line3', 'line4'])]])
 | |
|     eq('OptionSet Autocommands for "diff": Vim(normal):E788: Not allowed to edit another buffer now',
 | |
|        pcall_err(command, 'diffthis'))
 | |
|   end)
 | |
| end)
 |