Skip to content

Fix Multiline Prompt Line Wrapping#28

Open
ColonelPanics wants to merge 1 commit intopiotrmurach:masterfrom
ColonelPanics:fix/multiline-prompt
Open

Fix Multiline Prompt Line Wrapping#28
ColonelPanics wants to merge 1 commit intopiotrmurach:masterfrom
ColonelPanics:fix/multiline-prompt

Conversation

@ColonelPanics
Copy link

Describe the change

This PR addresses an issue with multiline prompts whereby longer previous lines cause the width calculation to be incorrect, leading to strange behaviour in the terminal session. It looks like this bug was introduced in this PR.

This is the current behaviour:

PreviousBehaviour.mov

With this change, the behaviour is as follows:

New.Behaviour.mov

Why are we doing this?

This change is being made because the prompt moving up the display is not desirable behaviour.

Benefits

One less bug!

Drawbacks

If any existing code was dependent on this sort of behaviour (I sure hope not!) then it will no longer work.

Requirements

  • Tests written & passing locally?
  • Code style checked?
  • Rebased with master branch?
  • Documentation updated?
  • Changelog updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant