diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-14 06:50:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-14 06:50:17 +0800 |
commit | 1f748d46c3ef288b2d9a8b7dd2c9c931ed4f0059 (patch) | |
tree | 4af9c7a5a39dd57481882bf43da744880a63c8be | |
parent | c2ed8ce102e733e4c3edecb35c5b8e752456bb39 (diff) | |
download | rneovim-1f748d46c3ef288b2d9a8b7dd2c9c931ed4f0059.tar.gz rneovim-1f748d46c3ef288b2d9a8b7dd2c9c931ed4f0059.tar.bz2 rneovim-1f748d46c3ef288b2d9a8b7dd2c9c931ed4f0059.zip |
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
https://github.com/vim/vim/commit/1a3dd7dc7847a3568fe96192a21e478f46c07929
-rw-r--r-- | src/nvim/window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index 132bf9ee60..bc0d8e6d7b 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -3461,7 +3461,7 @@ static tabpage_T *alt_tabpage(void) return lastused_tabpage; } - // Use the previous tab page, if possible. + // Use the next tab page, if possible. bool forward = curtab->tp_next != NULL && ((tcl_flags & TCL_LEFT) == 0 || curtab == first_tabpage); @@ -3469,6 +3469,7 @@ static tabpage_T *alt_tabpage(void) if (forward) { tp = curtab->tp_next; } else { + // Use the previous tab page. for (tp = first_tabpage; tp->tp_next != curtab; tp = tp->tp_next) {} } |