You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected:
The : should be ignored and the HOME key should jump to the start of the file.
Actual:
The help file is opened.
Explanation:
On an xterm, HOME maps to "\eOH". When less sees the sequence ":\e" it treats it as a bad command and discards both characters. Then it processes the "O" and the "H" as separate commands.
Change [fe]cmd_decode so instead of returning only commands that
match the entire cmd string, we return commands that match a tail
of the cmd string. This allows spurious leading chars in command
entry to be ignored.
Related to #543.
Steps to reproduce:
G
.:
.HOME
.Expected:
The
:
should be ignored and the HOME key should jump to the start of the file.Actual:
The help file is opened.
Explanation:
On an xterm, HOME maps to "\eOH". When less sees the sequence ":\e" it treats it as a bad command and discards both characters. Then it processes the "O" and the "H" as separate commands.
Discovered while investigating #523.
The text was updated successfully, but these errors were encountered: