cmdline cursor goes backwards one character when using auto completion #4616

Closed
opened 2026-01-30 23:52:04 +00:00 by claunia · 4 comments
Owner

Originally created by @0xBABA on GitHub (Oct 24, 2019).

Environment

Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version 0.5.2762.0

Any other software?
WSL with Ubuntu 18.04.2 LTS

Steps to reproduce

  1. open terminal on WSL with ubuntu
  2. start typing a command
  3. use tab for auto-completion
  4. cursor goes back 1 place in the cmdline (visually - not really, meaning if i continue typing cmd can be executed successfully)

Expected behavior

auto completion should not redraw the cursor

Actual behavior

cursor seems to go back 1 place and when trying to continue typing the command it ends up in disorder.

bug_report

Originally created by @0xBABA on GitHub (Oct 24, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Microsoft Windows [Version 10.0.18362.418] Windows Terminal version 0.5.2762.0 Any other software? WSL with Ubuntu 18.04.2 LTS ``` # Steps to reproduce 1. open terminal on WSL with ubuntu 2. start typing a command 3. use tab for auto-completion 4. cursor goes back 1 place in the cmdline (visually - not really, meaning if i continue typing cmd can be executed successfully) # Expected behavior auto completion should not redraw the cursor # Actual behavior cursor seems to go back 1 place and when trying to continue typing the command it ends up in disorder. ![bug_report](https://user-images.githubusercontent.com/22504131/67459744-f083fe00-f641-11e9-9f40-5b10972a6061.png)
Author
Owner

@egmontkob commented on GitHub (Oct 24, 2019):

It's probably due a misunderstanding between the terminal and bash on the width of the cloud symbol.

@egmontkob commented on GitHub (Oct 24, 2019): It's probably due a misunderstanding between the terminal and bash on the width of the cloud symbol.
Author
Owner

@DHowett-MSFT commented on GitHub (Oct 24, 2019):

Yeah, that sounds about right. Thanks @egmontkob!
I'm wondering if this got better with 0.6? We changed how character widths are figured out. Maybe we'll agree with bash?

@DHowett-MSFT commented on GitHub (Oct 24, 2019): Yeah, that sounds about right. Thanks @egmontkob! I'm wondering if this got better with 0.6? We changed how character widths are figured out. Maybe we'll agree with bash?
Author
Owner

@0xBABA commented on GitHub (Oct 25, 2019):

I just installed version 0.6.2951.0 and it seems to work better in regards to this bug report.
I will continue evaluating and close this in a day or two if issue seems resolved.
Thanks @DHowett-MSFT @egmontkob

@0xBABA commented on GitHub (Oct 25, 2019): I just installed version 0.6.2951.0 and it seems to work better in regards to this bug report. I will continue evaluating and close this in a day or two if issue seems resolved. Thanks @DHowett-MSFT @egmontkob
Author
Owner

@0xBABA commented on GitHub (Oct 29, 2019):

Issue seems to be resolved with version > 0.6

@0xBABA commented on GitHub (Oct 29, 2019): Issue seems to be resolved with version > 0.6
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4616