Skip to content

Wrong inputrc loading order #634

@tompng

Description

@tompng

Description

# Reline.readline
IOGate.prep
read inputrc
IOGate.deprep
# Reline.readline
IOGate.prep
read inputrc
IOGate.deprep

Order problem bug:
Reline reads inputrc after IOGate.prep.
config is not initialized on the first IOGate.prep call.

It will be a problem when implementing bracketed paste.

def prep
  # Enable bracketed paste
  @@output.write "\e[?2004h" if Reline.core.config.enable_bracketed_paste # this config is not initialized yet
end

Performance problem:
Readline seems to read inputrc only once. (warns if inputrc has a problem only once, no warning on inputrc edited after first load)
Reline reads inputrc on every Relin.readline call.

Terminal Emulator

Terminal.app
Not related to terminal emulator

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions