1
0
forked from aniani/vim

patch 9.1.0594: Unnecessary redraw when setting 'winfixbuf'

Problem:  Unnecessary redraw when setting 'winfixbuf'.
Solution: Remove P_RWIN flag. (zeertzjq)

closes: #15283

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-07-17 19:25:38 +02:00
committed by Christian Brabandt
parent d24aaa9983
commit ac4ce9e15b
3 changed files with 8 additions and 5 deletions

View File

@@ -2855,7 +2855,7 @@ static struct vimoption options[] =
{"window", "wi", P_NUM|P_VI_DEF, {"window", "wi", P_NUM|P_VI_DEF,
(char_u *)&p_window, PV_NONE, did_set_window, NULL, (char_u *)&p_window, PV_NONE, did_set_window, NULL,
{(char_u *)0L, (char_u *)0L} SCTX_INIT}, {(char_u *)0L, (char_u *)0L} SCTX_INIT},
{"winfixbuf", "wfb", P_BOOL|P_VI_DEF|P_RWIN, {"winfixbuf", "wfb", P_BOOL|P_VI_DEF,
(char_u *)VAR_WIN, PV_WFB, NULL, NULL, (char_u *)VAR_WIN, PV_WFB, NULL, NULL,
{(char_u *)FALSE, (char_u *)0L} SCTX_INIT}, {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
{"winfixheight", "wfh", P_BOOL|P_VI_DEF|P_RSTAT, {"winfixheight", "wfh", P_BOOL|P_VI_DEF|P_RSTAT,

View File

@@ -296,6 +296,7 @@ func Test_gd_string()
return x; return x;
} }
[CODE] [CODE]
call XTest_goto_decl('gd', lines, 4, 7) call XTest_goto_decl('gd', lines, 4, 7)
endfunc endfunc
@@ -320,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

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
594,
/**/ /**/
593, 593,
/**/ /**/