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:
Justin M. Keyes 2017-01-28 14:30:57 +01:00 committed by GitHub
parent 5527754f95
commit 81525dc5c3
3 changed files with 3 additions and 2 deletions

View File

@ -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"

View File

@ -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',

View File

@ -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([[