Skip to content

Import autocomplete in the REPL on Windows moves the text to the end of the next line #140131

@pt1243

Description

@pt1243

Bug report

Bug description:

On Windows, when using the 3.14 autocomplete imports in the REPL for some modules, the cursor moves to the next line and the text becomes right-aligned. The cursor also becomes misplaced with respect to where the typed characters appear.

I have included below a video of the issue. The following steps will reproduce this:

  1. Type from concurrent.futures import .
  2. Hit TAB twice, to show the three suggestions.
  3. Type t; note that the cursor now moves to the end of the second line.
  4. Continue typing hread; note that the unfinished line now appears at the end of the second line, that it remains right-aligned as more text is added, and that the cursor appears between the second-last and last characters despite new characters being added at the end of the line.
recording.mp4

I investigated other modules as well, but out of the few that I tried, only from concurrent.futures import caused this behaviour.

CPython versions tested on:

3.14

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsstdlibStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions