Skip to content

REPL: moving to beginning of line broken after selecting previous history item #60779

@matthias314

Description

@matthias314

Enter a multi-line command in the REPL. Press Enter and then Ctrl-Up to get the input back, with the cursor being at the very end of input. Now press Ctrl-A. Instead of moving to the beginning of the last line of the multi-line input, the cursor moves to the beginning of the first line. This happens for all Julia versions from (at least) 1.10 to master.

I've confirmed that in the function move_line_start somehow the branch

if s.key_repeats > 0
move_input_start(s)

is triggered although Ctrl-A is only pressed once. (While not being documented, pressing Ctrl-A twice brings you to the beginning of the input.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions