mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix(options): don't update curswant for 'winhl' or 'winbl' (#27515)
This commit is contained in:
@@ -9785,7 +9785,7 @@ return {
|
|||||||
UI-dependent. Works best with RGB colors. 'termguicolors'
|
UI-dependent. Works best with RGB colors. 'termguicolors'
|
||||||
]=],
|
]=],
|
||||||
full_name = 'winblend',
|
full_name = 'winblend',
|
||||||
redraw = { 'current_window' },
|
redraw = { 'current_window', 'highlight_only' },
|
||||||
scope = { 'window' },
|
scope = { 'window' },
|
||||||
short_desc = N_('Controls transparency level for floating windows'),
|
short_desc = N_('Controls transparency level for floating windows'),
|
||||||
type = 'number',
|
type = 'number',
|
||||||
@@ -9900,7 +9900,7 @@ return {
|
|||||||
expand_cb = 'expand_set_winhighlight',
|
expand_cb = 'expand_set_winhighlight',
|
||||||
full_name = 'winhighlight',
|
full_name = 'winhighlight',
|
||||||
list = 'onecommacolon',
|
list = 'onecommacolon',
|
||||||
redraw = { 'current_window' },
|
redraw = { 'current_window', 'highlight_only' },
|
||||||
scope = { 'window' },
|
scope = { 'window' },
|
||||||
short_desc = N_('Setup window-local highlights'),
|
short_desc = N_('Setup window-local highlights'),
|
||||||
type = 'string',
|
type = 'string',
|
||||||
|
22
test/functional/editor/mode_normal_spec.lua
Normal file
22
test/functional/editor/mode_normal_spec.lua
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
-- Normal mode tests.
|
||||||
|
|
||||||
|
local helpers = require('test.functional.helpers')(after_each)
|
||||||
|
local clear = helpers.clear
|
||||||
|
local feed = helpers.feed
|
||||||
|
local fn = helpers.fn
|
||||||
|
local command = helpers.command
|
||||||
|
local eq = helpers.eq
|
||||||
|
|
||||||
|
describe('Normal mode', function()
|
||||||
|
before_each(clear)
|
||||||
|
|
||||||
|
it('setting &winhighlight or &winblend does not change curswant #27470', function()
|
||||||
|
fn.setline(1, { 'long long lone line', 'short line' })
|
||||||
|
feed('ggfi')
|
||||||
|
local pos = fn.getcurpos()
|
||||||
|
feed('j')
|
||||||
|
command('setlocal winblend=10 winhighlight=Visual:Search')
|
||||||
|
feed('k')
|
||||||
|
eq(pos, fn.getcurpos())
|
||||||
|
end)
|
||||||
|
end)
|
Reference in New Issue
Block a user