Skip to content

isWrapped does not get lifted for longish bash commands #1882

@jerch

Description

@jerch

Repro with reflow PR in the demo:

  • input some longish multiline command, e.g. echo "Lorem ipsum.....", press enter
  • use arrow up to see the command again, dont press enter
  • use arrow down to get back to clean prompt
  • input ls, press enter
  • shrink/enlarge viewport width

grafik

Above the first 3 lines of the ls output wrongly reflow as they belong to one wrapped line.

Note this is not an issue of the reflow PR, the PR just makes the problem obvious. It seems we currently do not lift the isWrapped flag for eraseChar which happens to be send by libreadline when navigating through bash comands with arrow keys.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions