Created on 2019-08-14 06:40 by taleinat, last changed 2022-04-11 14:59 by admin. This issue is now closed.
When the current line is near the bottom of the shell window, the completions list will be shown above it. However, instead of appearing directly above the current line, it appears quite a bit higher, about one line too high. See attached screenshot. Seen on Windows 10 with current master (2a570af12ac5e4ac5575a68f8739b31c24d01367). First brought up by Terry Reedy in a comment on PR GH-15169 [1]. [1] https://github.com/python/cpython/pull/15169#issuecomment-521066906
See PR GH-15267 with a fix.
What I reported is that it is too low on my Windows system, with my size and font, mostly covering the line. Anyway, misplaced before, now perfectly placed. Now that I see the patch, I seem to remember another place what an update call is needed before gathering window information. Unless you say differently, I will add idlelib/NEWS.txt item tomorrow and merge.
> Unless you say differently, I will add idlelib/NEWS.txt item tomorrow and merge. I've added an idlelib/NEWS.txt entry to the PR. Feel free to merge.
New changeset 71662dc2f12a7e77e5e1dfe64ec87c1b459c3f59 by Terry Jan Reedy (Tal Einat) in branch 'master': bpo-37849: IDLE: fix completion window positioning above line (GH-15267) https://github.com/python/cpython/commit/71662dc2f12a7e77e5e1dfe64ec87c1b459c3f59
New changeset 557802dc17498557e481f2ad3d4a83ece469e489 by Miss Islington (bot) in branch '3.8': bpo-37849: IDLE: fix completion window positioning above line (GH-15267) https://github.com/python/cpython/commit/557802dc17498557e481f2ad3d4a83ece469e489
New changeset 88cce7b59fa503616295ca1a25bce6251f9cd317 by Miss Islington (bot) in branch '3.7': bpo-37849: IDLE: fix completion window positioning above line (GH-15267) https://github.com/python/cpython/commit/88cce7b59fa503616295ca1a25bce6251f9cd317