Skip to content

Conversation

@rgemulla
Copy link
Collaborator

@rgemulla rgemulla commented Nov 2, 2019

Alternative solution to PR #1698 and #1428.

PR #1698 first inserts the echoed input into the shell buffer and then fontifies it. This causes problems (1) when a continuation prompt is used and (2) when the input is truncated because it is long. In both cases, fontification may be confused.

This PR proceeds the other way around: it first fontifies the echoed input and then inserts it into the shell buffer (potentially with continuation prompt). This leads to correct formatting (for all valid Python code).

@coveralls
Copy link

coveralls commented Nov 2, 2019

Coverage Status

Coverage decreased (-0.3%) to 91.994% when pulling ab693ca on rgemulla:fontify-shell-input into 864ad20 on jorgenschaefer:master.

@galaunay galaunay force-pushed the master branch 4 times, most recently from c4a2564 to d974e00 Compare June 30, 2021 22:40
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.

2 participants