]> granicus.if.org Git - python/commit
bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)
authorCheryl Sabella <cheryl.sabella@gmail.com>
Fri, 1 Jun 2018 23:23:00 +0000 (19:23 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Fri, 1 Jun 2018 23:23:00 +0000 (19:23 -0400)
commit29996a1c4e8bd6dde6adce2b44d11a0982a47a3a
treec6f08943343b54a41e9ed3da85a15325819aebf0
parent6854e803b73ac4d02ba160d514b8a53dd7a62905
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.
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]