]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 1 Jun 2018 23:45:54 +0000 (16:45 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Jun 2018 23:45:54 +0000 (16:45 -0700)
commit0800b6c17a829ecb554d93cba8c97f92b15be52a
tree96339e67a56016982b26cca1b3184aebedebee59
parent283e12f91db1a5290f2ddbddee406797fec39d2e
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]