◐ Shell
clean mode source ↗

IDLE shell sidebar fixing CI by taleinat · Pull Request #25628 · python/cpython

added 30 commits

September 17, 2020 12:49
Specifically, avoid EditorWindow.ResetColorizer() moving the undo
and colorizer delegators to the top of the percolator, by removing
and inserting them.
This avoids ColorDelegator removing unrelated tags, specifically "stdin",
when re-colorizing.
Prompts are now marked in the text by adding the "console" tag to
the newline character ('\n') before the beginning of the line.  This
works around issues with the prompt itself usually no longer being
written in the text widget.

With another small fix to the PyShell.recall() method, input lines
can now be recognized consistently by checking for the "stdin" tag.

This is much better than attempting to separately track the prompt
and input lines, since those are difficult to keep up to date after
undo/redo actions and squeezing/unsqueezing of previous output.
The background color still uses that configured for line numbers.
The fix needed was for History to properly set the "stdin" tag
on text it inserts.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>

terryjreedy

@terryjreedy

@taleinat

@taleinat

@taleinat taleinat deleted the idle-shell-sidebar-fixing-ci branch

May 4, 2021 09:22