Skip to content

[REPL] Confusing completion when using up arrow and TAB #52264

@giordano

Description

@giordano

Imagine this REPL session with Julia master, | represents the position of the cursor

using Linea|
# Now press up arrow to recall previous item in the history starting with `using Linea`
# This is completed to...
using Linea|rAlgebra
# Now press TAB
using LinearAlgebra|
# Now press TAB again
using LinearAlgebra|rAlgebra

Ideally last TAB shouldn't do anything, as the cursor is already at the end of the line and there's nothing to complete there.

In Julia v1.9, after pressing the up arrow the TAB key completes

using Linea|rAlgebra

to

using LinearAlgebra|rAlgebra

which makes sense because you're basically completing using Linea, but the behaviour on master is much more counterintuitive because pressing TAB the first time moves the cursor at the end of the line, so another TAB shouldn't do anything at that point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)bugIndicates an unexpected problem or unintended behaviorregressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions