mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	defaults: Revert 'mouse=a' (#6022)
This default causes too much confusion for terminal users. Until a better approach is implemented, revert to the traditional default. Better solution would be: - Implement a right-click menu for TUI - Set 'mouse=a' *only* if clipboard is working. Closes #5938
This commit is contained in:
		| @@ -47,7 +47,6 @@ these differences. | |||||||
| - 'langnoremap' is set by default | - 'langnoremap' is set by default | ||||||
| - 'laststatus' defaults to 2 (statusline is always shown) | - 'laststatus' defaults to 2 (statusline is always shown) | ||||||
| - 'listchars' defaults to "tab:> ,trail:-,nbsp:+" | - 'listchars' defaults to "tab:> ,trail:-,nbsp:+" | ||||||
| - 'mouse' defaults to "a" |  | ||||||
| - 'nocompatible' is always set | - 'nocompatible' is always set | ||||||
| - 'nrformats' defaults to "bin,hex" | - 'nrformats' defaults to "bin,hex" | ||||||
| - 'sessionoptions' doesn't include "options" | - 'sessionoptions' doesn't include "options" | ||||||
|   | |||||||
| @@ -1572,7 +1572,7 @@ return { | |||||||
|       full_name='mouse', |       full_name='mouse', | ||||||
|       type='string', list='flags', scope={'global'}, |       type='string', list='flags', scope={'global'}, | ||||||
|       varname='p_mouse', |       varname='p_mouse', | ||||||
|       defaults={if_true={vi="", vim="a"}} |       defaults={if_true={vi="", vim=""}} | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       full_name='mousefocus', abbreviation='mousef', |       full_name='mousefocus', abbreviation='mousef', | ||||||
|   | |||||||
| @@ -438,6 +438,8 @@ describe('clipboard usage', function() | |||||||
|   end) |   end) | ||||||
|  |  | ||||||
|   it('handles middleclick correctly', function() |   it('handles middleclick correctly', function() | ||||||
|  |     execute('set mouse=a') | ||||||
|  |  | ||||||
|     local screen = Screen.new(30, 5) |     local screen = Screen.new(30, 5) | ||||||
|     screen:attach() |     screen:attach() | ||||||
|     insert([[ |     insert([[ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes