From 97459947163a631e5aa1dd3635d3adc7e2fadde2 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 5 Apr 2019 16:16:12 +0200 Subject: menuconfig: Make comment re. preserving cursor position more accurate Items being added above the selected item would mess with the cursor position too, if we didn't compensate. --- menuconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'menuconfig.py') diff --git a/menuconfig.py b/menuconfig.py index bf8bf31..3021d86 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -1610,8 +1610,8 @@ def _update_menu(): # changed. Changing a value might change which items in the menu are # visible. # - # Tries to preserve the location of the cursor when items disappear above - # it. + # If possible, preserves the location of the cursor on the screen when + # items are added/removed above the selected item. global _shown global _sel_node_i -- cgit v1.2.3