aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-18 06:45:26 +0800
committerGitHub <noreply@github.com>2024-07-18 06:45:26 +0800
commitbbe51ef016be57f73af3dafb12816a8167ff462a (patch)
tree7a0caf13a4dd60c4c6dd3224b3ed42894cdf0310
parent8634ec3827a52a0339c98103c278973382e96267 (diff)
downloadrneovim-bbe51ef016be57f73af3dafb12816a8167ff462a.tar.gz
rneovim-bbe51ef016be57f73af3dafb12816a8167ff462a.tar.bz2
rneovim-bbe51ef016be57f73af3dafb12816a8167ff462a.zip
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 https://github.com/vim/vim/commit/ac4ce9e15b7ee0fccfa72aecf98b696d880e53c3
-rw-r--r--src/nvim/options.lua1
-rw-r--r--test/old/testdir/test_goto.vim4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 9384253602..368cdca5e7 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -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',
diff --git a/test/old/testdir/test_goto.vim b/test/old/testdir/test_goto.vim
index 0d5de7235e..8813bcbacd 100644
--- a/test/old/testdir/test_goto.vim
+++ b/test/old/testdir/test_goto.vim
@@ -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