Skip to content

PageUp stopped working after 9ea90038ef19cb264ea907177c2613b6b3a16685 #549

@trofi

Description

@trofi

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 9ea9003 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions