mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	 55f6a1cab0
			
		
	
	55f6a1cab0
	
	
	
		
			
			Problem:    Incsearch not triggered when pasting clipboard register on the
            command line.
Solution:   Also set "literally" when using a clipboard register. (Ken Takata,
            closes vim/vim#12460)
9cf6ab1332
Co-authored-by: K.Takata <kentkt@csc.jp>
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			965 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			965 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| 
 | |
| local helpers = require('test.functional.helpers')(after_each)
 | |
| local clear, eval = helpers.clear, helpers.eval
 | |
| local command = helpers.command
 | |
| local eq = helpers.eq
 | |
| local pcall_err = helpers.pcall_err
 | |
| 
 | |
| describe('providers', function()
 | |
|   before_each(function()
 | |
|     clear('--cmd', 'set rtp^=test/functional/fixtures')
 | |
|   end)
 | |
| 
 | |
|   it('with #Call(), missing g:loaded_xx_provider', function()
 | |
|     command('set loadplugins')
 | |
|     -- Using test-fixture with broken impl:
 | |
|     -- test/functional/fixtures/autoload/provider/python.vim
 | |
|     eq('Vim:provider: python3: missing required variable g:loaded_python3_provider',
 | |
|       pcall_err(eval, "has('python3')"))
 | |
|   end)
 | |
| 
 | |
|   it('with g:loaded_xx_provider, missing #Call()', function()
 | |
|     -- Using test-fixture with broken impl:
 | |
|     -- test/functional/fixtures/autoload/provider/ruby.vim
 | |
|     eq('Vim:provider: ruby: g:loaded_ruby_provider=2 but provider#ruby#Call is not defined',
 | |
|       pcall_err(eval, "has('ruby')"))
 | |
|   end)
 | |
| end)
 |