mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
8c446da349
commit
1a3dd7dc78
@@ -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 */
|
||||||
|
/**/
|
||||||
|
575,
|
||||||
/**/
|
/**/
|
||||||
574,
|
574,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -3789,13 +3789,14 @@ alt_tabpage(void)
|
|||||||
if ((tcl_flags & TCL_USELAST) && valid_tabpage(lastused_tabpage))
|
if ((tcl_flags & TCL_USELAST) && valid_tabpage(lastused_tabpage))
|
||||||
return lastused_tabpage;
|
return lastused_tabpage;
|
||||||
|
|
||||||
// Use the previous tab page, if possible.
|
// Use the next tab page, if possible.
|
||||||
forward = curtab->tp_next != NULL &&
|
forward = curtab->tp_next != NULL &&
|
||||||
((tcl_flags & TCL_LEFT) == 0 || curtab == first_tabpage);
|
((tcl_flags & TCL_LEFT) == 0 || curtab == first_tabpage);
|
||||||
|
|
||||||
if (forward)
|
if (forward)
|
||||||
tp = curtab->tp_next;
|
tp = curtab->tp_next;
|
||||||
else
|
else
|
||||||
|
// Use the previous tab page.
|
||||||
for (tp = first_tabpage; tp->tp_next != curtab; tp = tp->tp_next)
|
for (tp = first_tabpage; tp->tp_next != curtab; tp = tp->tp_next)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user