]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0575: Wrong comments in alt_tabpage() v9.1.0575
authorzeertzjq <zeertzjq@outlook.com>
Sat, 13 Jul 2024 16:53:54 +0000 (18:53 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 13 Jul 2024 16:53:54 +0000 (18:53 +0200)
Problem:  Wrong comments in alt_tabpage()
          (after v9.1.0572)
Solution: Correct the comments (zeertzjq).

closes: #15235

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/version.c
src/window.c

index 25e38ca55da4ff4b7f1efd1238c43a437e27c360..c9113e628acb74ae8f32a876b964fd686f403a93 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    575,
 /**/
     574,
 /**/
index c87cce0016a21534add8b8e932a41d4da4bdd60a..db0bb1b628c099c9363e4be865d0936928ada4a4 100644 (file)
@@ -3789,13 +3789,14 @@ alt_tabpage(void)
     if ((tcl_flags & TCL_USELAST) && valid_tabpage(lastused_tabpage))
        return lastused_tabpage;
 
-    // Use the previous tab page, if possible.
+    // Use the next tab page, if possible.
     forward = curtab->tp_next != NULL &&
            ((tcl_flags & TCL_LEFT) == 0 || curtab == first_tabpage);
 
     if (forward)
        tp = curtab->tp_next;
     else
+       // Use the previous tab page.
        for (tp = first_tabpage; tp->tp_next != curtab; tp = tp->tp_next)
            ;