less icon indicating copy to clipboard operation
less copied to clipboard

PageUp stopped working after 9ea90038ef19cb264ea907177c2613b6b3a16685

Open trofi opened this issue 6 months ago • 4 comments

After a less update in my distribution I noticed that PageUp / PageDown keys stopped working in less. The bisect says that it stopped working after 9ea90038ef19cb264ea907177c2613b6b3a16685 commit.

Reverting the commit on top of master also fixes PageUp / PageDown keys for me:

--- a/decode.c
+++ b/decode.c
@@ -699,9 +699,7 @@ static int cmd_search(constant char *cmd, constant char *table, constant char *e
                         * but not the end of the string in the command table.
                         * The user's command is incomplete.
                         */
-                       if (a == A_INVALID)
-                               a = A_PREFIX;
-                       q = cmd-1;
+                       return A_PREFIX;
                } else
                {
                        /*

The system is linux with alacritty terminal.

trofi avatar Jul 29 '24 08:07 trofi