mirror of
https://github.com/neovim/neovim
synced 2025-07-17 01:31:48 +00:00
vim-patch:9.1.0594: Unnecessary redraw when setting 'winfixbuf' (#29775)
Problem: Unnecessary redraw when setting 'winfixbuf'. Solution: Remove P_RWIN flag. (zeertzjq) closes: vim/vim#15283ac4ce9e15b
(cherry picked from commitbbe51ef016
)
This commit is contained in:
committed by
github-actions[bot]
parent
d6437e2ca5
commit
b01202df15
@ -9840,7 +9840,6 @@ return {
|
|||||||
]=],
|
]=],
|
||||||
full_name = 'winfixbuf',
|
full_name = 'winfixbuf',
|
||||||
pv_name = 'p_wfb',
|
pv_name = 'p_wfb',
|
||||||
redraw = { 'current_window' },
|
|
||||||
scope = { 'window' },
|
scope = { 'window' },
|
||||||
short_desc = N_('pin a window to a specific buffer'),
|
short_desc = N_('pin a window to a specific buffer'),
|
||||||
type = 'boolean',
|
type = 'boolean',
|
||||||
|
@ -321,14 +321,14 @@ func Test_set_options_keep_col()
|
|||||||
let pos = getcurpos()
|
let pos = getcurpos()
|
||||||
normal j
|
normal j
|
||||||
set invhlsearch spell spelllang=en,cjk spelloptions=camel textwidth=80
|
set invhlsearch spell spelllang=en,cjk spelloptions=camel textwidth=80
|
||||||
set cursorline cursorcolumn cursorlineopt=line colorcolumn=+1
|
set cursorline cursorcolumn cursorlineopt=line colorcolumn=+1 winfixbuf
|
||||||
set background=dark
|
set background=dark
|
||||||
set background=light
|
set background=light
|
||||||
normal k
|
normal k
|
||||||
call assert_equal(pos, getcurpos())
|
call assert_equal(pos, getcurpos())
|
||||||
bwipe!
|
bwipe!
|
||||||
set hlsearch& spell& spelllang& spelloptions& textwidth&
|
set hlsearch& spell& spelllang& spelloptions& textwidth&
|
||||||
set cursorline& cursorcolumn& cursorlineopt& colorcolumn&
|
set cursorline& cursorcolumn& cursorlineopt& colorcolumn& winfixbuf&
|
||||||
set background&
|
set background&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user