]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0594: Unnecessary redraw when setting 'winfixbuf' v9.1.0594
authorzeertzjq <zeertzjq@outlook.com>
Wed, 17 Jul 2024 17:25:38 +0000 (19:25 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 17 Jul 2024 17:26:50 +0000 (19:26 +0200)
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>
src/optiondefs.h
src/testdir/test_goto.vim
src/version.c

index bf3ed35e0b214d6b4b397b4c18fc89046129a6fe..b5446193d5bdcc5dfbf85ee8d5f681ce61ff0ca0 100644 (file)
@@ -2855,13 +2855,13 @@ static struct vimoption options[] =
     {"window",     "wi",   P_NUM|P_VI_DEF,
                            (char_u *)&p_window, PV_NONE, did_set_window, NULL,
                            {(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 *)FALSE, (char_u *)0L} SCTX_INIT},
     {"winfixheight", "wfh", P_BOOL|P_VI_DEF|P_RSTAT,
                            (char_u *)VAR_WIN, PV_WFH, NULL, NULL,
                            {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
-    {"winfixwidth", "wfw", P_BOOL|P_VI_DEF|P_RSTAT,
+    {"winfixwidth", "wfw",  P_BOOL|P_VI_DEF|P_RSTAT,
                            (char_u *)VAR_WIN, PV_WFW, NULL, NULL,
                            {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
     {"winheight",   "wh",   P_NUM|P_VI_DEF,
@@ -2871,7 +2871,7 @@ static struct vimoption options[] =
     {"winminheight", "wmh", P_NUM|P_VI_DEF,
                            (char_u *)&p_wmh, PV_NONE, did_set_winminheight, NULL,
                            {(char_u *)1L, (char_u *)0L} SCTX_INIT},
-    {"winminwidth", "wmw", P_NUM|P_VI_DEF,
+    {"winminwidth", "wmw",  P_NUM|P_VI_DEF,
                            (char_u *)&p_wmw, PV_NONE, did_set_winminwidth, NULL,
                            {(char_u *)1L, (char_u *)0L} SCTX_INIT},
     {"winptydll", NULL,            P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
index 357a8d27c87cbc745c9d598ee4ea5c17f03fd8c7..8813bcbacd5528766cd309d3397a25402483e4ed 100644 (file)
@@ -296,6 +296,7 @@ func Test_gd_string()
       return x;
     }
   [CODE]
+
   call XTest_goto_decl('gd', lines, 4, 7)
 endfunc
 
@@ -320,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
 
index 49aeb92f7aecbf96d38cbb8d5fef7b9266546442..986edc928649d66f34ae1aab95e921a3f71ee66f 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    594,
 /**/
     593,
 /**/