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#15283

ac4ce9e15b
This commit is contained in:
zeertzjq 2024-07-18 06:45:26 +08:00 committed by GitHub
parent 8634ec3827
commit bbe51ef016
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -9889,7 +9889,6 @@ return {
]=],
full_name = 'winfixbuf',
pv_name = 'p_wfb',
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_('pin a window to a specific buffer'),
type = 'boolean',

View File

@ -321,14 +321,14 @@ func Test_set_options_keep_col()
let pos = getcurpos()
normal j
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=light
normal k
call assert_equal(pos, getcurpos())
bwipe!
set hlsearch& spell& spelllang& spelloptions& textwidth&
set cursorline& cursorcolumn& cursorlineopt& colorcolumn&
set cursorline& cursorcolumn& cursorlineopt& colorcolumn& winfixbuf&
set background&
endfunc