]> granicus.if.org Git - python/commit
bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 2 Jun 2018 00:08:03 +0000 (17:08 -0700)
committerGitHub <noreply@github.com>
Sat, 2 Jun 2018 00:08:03 +0000 (17:08 -0700)
commita42fe3c67ca86ac08dc6f47af27eed089d35fdd0
tree728f9652fdc418c3e227e5f1c0f9f38afee75cb4
parent1df877caad584135263ef94d83a28251e162e643
bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)

Instead of displaying a fixed number of lines, some blank, Code Context
now displays the variable number of actual context lines.  When there
are no context lines, it shows a single blank line to indicate that the
feature is turned on.

The Code Context configuration option is changed from 'numlines'
(default 3) to 'maxlines' (default 15) to avoid possible interference
between user settings for the old and new versions of Code Context.
(cherry picked from commit 29996a1c4e8bd6dde6adce2b44d11a0982a47a3a)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Lib/idlelib/codecontext.py
Lib/idlelib/config-extensions.def
Lib/idlelib/configdialog.py
Lib/idlelib/idle_test/test_codecontext.py
Lib/idlelib/idle_test/test_configdialog.py
Misc/NEWS.d/next/IDLE/2018-05-24-20-42-44.bpo-33642.J0VQbS.rst [new file with mode: 0644]