]> granicus.if.org Git - vim/commitdiff
patch 9.0.0135: comment about tabpage line above the wrong code v9.0.0135
authorzeertzjq <zeertzjq@outlook.com>
Tue, 2 Aug 2022 11:15:51 +0000 (12:15 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 2 Aug 2022 11:15:51 +0000 (12:15 +0100)
Problem:    Comment about tabpage line above the wrong code.
Solution:   Move the comment. (closes #10836)

src/version.c
src/window.c

index 6113e333fd7b76e509df5c164e95d01e4227387a..33f61aadfce2907016d6a1bcd35f30029f3ec9f0 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    135,
 /**/
     134,
 /**/
index 58a9ff9c683882c2210a6aedf0b451d8e0572cd0..f0d66da2ff4ac89a101e615dc0b0517cd2d506ff 100644 (file)
@@ -4324,10 +4324,8 @@ enter_tabpage(
     diff_need_scrollbind = TRUE;
 #endif
 
-    // The tabpage line may have appeared or disappeared, may need to resize
-    // the frames for that.  When the Vim window was resized need to update
-    // frame sizes too.  Use the stored value of p_ch, so that it can be
-    // different for each tab page.
+    // Use the stored value of p_ch, so that it can be different for each tab
+    // page.
     if (p_ch != curtab->tp_ch_used)
        clear_cmdline = TRUE;
     p_ch = curtab->tp_ch_used;
@@ -4338,6 +4336,9 @@ enter_tabpage(
     if ((row < cmdline_row) && (cmdline_row <= Rows - p_ch))
        clear_cmdline = TRUE;
 
+    // The tabpage line may have appeared or disappeared, may need to resize
+    // the frames for that.  When the Vim window was resized need to update
+    // frame sizes too.
     if (curtab->tp_old_Rows != Rows || (old_off != firstwin->w_winrow
 #ifdef FEAT_GUI_TABLINE
                            && !gui_use_tabline()