Skip to content

Reduce priority of recognizing keypad keys#19145

Open
AstroSnail wants to merge 1 commit intovim:masterfrom
AstroSnail:check_termcode
Open

Reduce priority of recognizing keypad keys#19145
AstroSnail wants to merge 1 commit intovim:masterfrom
AstroSnail:check_termcode

Conversation

@AstroSnail
Copy link

Suggested fix for #17331

Problem:  In XTerm, typing Home, End, PgUp or PgDn on the editing pad
	  will cause vim to recognize <kHome>, <kEnd>, <kPageUp> or
	  <kPageDown> (keypad keys) instead of <Home>, <End>, <PageUp>
	  or <PageDown> (editing pad keys) respectively, affecting
	  `:map`pings and `:terminal`.
Cause:    The keypad termcaps are sorted before the editing pad ones in
	  termcodes, meaning vim will match the former if they are the
	  same.
Solution: Only recognize keypad keys when nothing else matches.

fixes: vim#17331

Signed-off-by: AstroSnail <astrosnail@protonmail.com>
@chrisbra
Copy link
Member

chrisbra commented Jan 9, 2026

Thanks, but this will have to wait until after the release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants