Ctrl+PageUp in 9.2.0204

17 views
Skip to first unread message

jazztickets

unread,
1:41 PM (5 hours ago) 1:41 PM
to vim_use
I'm using ctrl+PageUp/ctrl+PageDown to switch between tabs but after upgrading to vim 9.2.0204 in Arch Linux, ctrl+PageUp no longer goes to the previous tab. Instead it's sending ctrl+e and scrolling one line down. Tested with xfce4-terminal and gnome's terminal. Do I need to change something in the terminal?

Gary Johnson

unread,
3:47 PM (3 hours ago) 3:47 PM
to vim_use
I can verify this on Ubuntu 24.04.4. I did a git bisect and found
the difference (bug?) to have been introduced at patch 9.2.0192.
This behavior is not affected by "k" in 'cpoptions'. I haven't
looked into it further.

--------------------------------------------------------------------
c4d212257d61f5c2a9cd919486288c747aaaa05d is the first bad commit
commit c4d212257d61f5c2a9cd919486288c747aaaa05d
Author: AstroSnail <astro...@protonmail.com>
Date: Tue Mar 17 21:24:43 2026 +0000

patch 9.2.0192: not correctly recognizing raw key codes

Problem: When "k" is excluded from cpoptions, vim should be able to
recognize raw key codes in mappings and replace them with
builtin codes (e.g. ^[OA is replaced with <Up>) so that
changing the builtin code also changes the mapping to match.
Currently, this only works properly if the builtin code does
not contain modifiers (e.g. @;*).
Solution: Teach find_term_bykeys how to recognize keys with modifiers
(AstroSnail).

fixes: #19182
closes: #19643

Signed-off-by: AstroSnail <astro...@protonmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

src/term.c | 93 +++++++++++++++++++++++++++++++++++++-----
src/testdir/test_termcodes.vim | 20 +++++++++
src/version.c | 2 +
3 files changed, 104 insertions(+), 11 deletions(-)
--------------------------------------------------------------------

Regards,
Gary

Gary Johnson

unread,
4:30 PM (2 hours ago) 4:30 PM
to vim_use
On 2026-03-20, Gary Johnson wrote:
> On 2026-03-20, jazztickets wrote:
> > I'm using ctrl+PageUp/ctrl+PageDown to switch between tabs but after upgrading
> > to vim 9.2.0204 in Arch Linux, ctrl+PageUp no longer goes to the previous tab.
> > Instead it's sending ctrl+e and scrolling one line down. Tested with
> > xfce4-terminal and gnome's terminal. Do I need to change something in the
> > terminal?
>
> I can verify this on Ubuntu 24.04.4. I did a git bisect and found
> the difference (bug?) to have been introduced at patch 9.2.0192.
> This behavior is not affected by "k" in 'cpoptions'. I haven't
> looked into it further.

I forgot to mention that the terminal I used was xterm version 403
and the desktop environment was GNOME 46.0.

However, I discovered that the issue is not present in the latest
Vim, 9.2.209, when using GNOME Terminal version 3.52.0.

Regards,
Gary

Christian Brabandt

unread,
5:33 PM (1 hour ago) 5:33 PM
to vim_use
Thanks for reporting, but it's not clear to me is this issue only
present in xterm? Or is it resolved with latest master?

Thanks,
Christian
--
Flugg's Law:
When you need to knock on wood is when you realize
that the world is composed of vinyl, naugahyde and aluminum.

jazztickets

unread,
6:17 PM (7 minutes ago) 6:17 PM
to vim...@googlegroups.com
On Fri, Mar 20, 2026 at 3:33 PM Christian Brabandt <cbl...@256bit.org> wrote:
>
>
> On Fr, 20 Mär 2026, Gary Johnson wrote:
>
> > On 2026-03-20, Gary Johnson wrote:
> > > On 2026-03-20, jazztickets wrote:
> > > > I'm using ctrl+PageUp/ctrl+PageDown to switch between tabs but after upgrading
> > > > to vim 9.2.0204 in Arch Linux, ctrl+PageUp no longer goes to the previous tab.
> > > > Instead it's sending ctrl+e and scrolling one line down. Tested with
> > > > xfce4-terminal and gnome's terminal. Do I need to change something in the
> > > > terminal?
> > >
> > > I can verify this on Ubuntu 24.04.4. I did a git bisect and found
> > > the difference (bug?) to have been introduced at patch 9.2.0192.
> > > This behavior is not affected by "k" in 'cpoptions'. I haven't
> > > looked into it further.
> >
> > I forgot to mention that the terminal I used was xterm version 403
> > and the desktop environment was GNOME 46.0.
> >
> > However, I discovered that the issue is not present in the latest
> > Vim, 9.2.209, when using GNOME Terminal version 3.52.0.
>
> Thanks for reporting, but it's not clear to me is this issue only
> present in xterm? Or is it resolved with latest master?

For me the issue is still happening in 9.2.209 on the terminals I've
tried: xterm,
xfce, gnome console, gnome terminal. It is working however on Konsole, which
also worked in 9.2.204.

Christian Brabandt

unread,
6:24 PM (now) 6:24 PM
to vim...@googlegroups.com

On Fr, 20 Mär 2026, jazztickets wrote:

> For me the issue is still happening in 9.2.209 on the terminals I've
> tried: xterm, xfce, gnome console, gnome terminal. It is working
> however on Konsole, which also worked in 9.2.204.

Thanks, let me ping the author

Thanks,
Christian
--
Term, holidays, term, holidays, till we leave school, and then work, work,
work till we die.
-- C. S. Lewis
Reply all
Reply to author
Forward
0 new messages