Mercurial > vim
changeset 35673:0bccb84cd672 v9.1.0575
patch 9.1.0575: Wrong comments in alt_tabpage()
Commit: https://github.com/vim/vim/commit/1a3dd7dc7847a3568fe96192a21e478f46c07929
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat Jul 13 18:53:54 2024 +0200
patch 9.1.0575: Wrong comments in alt_tabpage()
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 17 Jul 2024 08:13:23 +0200 |
parents | 23b2cbcce5e2 |
children | 3e188df00371 |
files | src/version.c src/window.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 575, +/**/ 574, /**/ 573,
--- a/src/window.c +++ b/src/window.c @@ -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) ;