Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to apply python-mode fontification to input echoed to shell #1711

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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