mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
vim-patch:9.1.0575: Wrong comments in alt_tabpage() (#29692)
Problem: Wrong comments in alt_tabpage()
(after v9.1.0572)
Solution: Correct the comments (zeertzjq).
closes: vim/vim#15235
1a3dd7dc78
This commit is contained in:
@@ -3461,7 +3461,7 @@ static tabpage_T *alt_tabpage(void)
|
|||||||
return lastused_tabpage;
|
return lastused_tabpage;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use the previous tab page, if possible.
|
// Use the next tab page, if possible.
|
||||||
bool forward = curtab->tp_next != NULL
|
bool forward = curtab->tp_next != NULL
|
||||||
&& ((tcl_flags & TCL_LEFT) == 0 || curtab == first_tabpage);
|
&& ((tcl_flags & TCL_LEFT) == 0 || curtab == first_tabpage);
|
||||||
|
|
||||||
@@ -3469,6 +3469,7 @@ static tabpage_T *alt_tabpage(void)
|
|||||||
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