question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

zsh terminal command competition adds extra characters at start

See original GitHub issue

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Windows 10
  • Remote OS: Ubuntu
  • Remote Architecture:
  • code-server --version: 3.11.1 c680aae973d83583e4a73dc0c422f44021f0140e

Steps to Reproduce

  1. Open a terminal with zsh
  2. Installed ohmyzsh
  3. Try any command with autocompletion with tab.
  4. Extra characters get added at the start.

Expected

Extra characters should not get added at the start. It is possible to edit the command after command completion.

Actual

Extra characters get added at the start.

Screenshot

issue

This issue can be reproduced in VS Code: No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
echuber2commented, Jan 12, 2022

Does this still happen with the latest code-server? Maybe it was a rendering issue. A few other rendering issues seem to have been resolved in 4+.

If the problem persists, it might be worth trying this in your user settings:

    "terminal.integrated.gpuAcceleration": "off",
    "terminal.integrated.fontSize": 15,
1reaction
ashwinmenkudlecommented, Dec 8, 2021

If you have SSH access can you verify it does not happen in a regular terminal?

Yes, Autocomplete works fine with mobaxterm ssh client with zsh shell and bash shell. Basic autocomplete supported by bash shell also works correctly in code server.

Read more comments on GitHub >

github_iconTop Results From Across the Web

zsh terminal command competition adds extra characters at start
Steps to Reproduce. Open a terminal with zsh; Installed ohmyzsh; Try any command with autocompletion with tab. Extra characters get added at the ......
Read more >
zsh - First characters of the command repeated in the display ...
The symptoms are that the display looks fine as long as you're adding characters or moving character by character but becomes garbled (with...
Read more >
Remnant characters when tab completing with ZSH
It seems I had issues with locale configuration and non UTF8 configuration. In my case the fix was: export LC_ALL="en_US.UTF-8".
Read more >
Chapter 5: Substitutions - A User's Guide to the Z-Shell
We'll come to this all in good time. The final use of modifiers is in filename generation, i.e. globbing. Since this usually works...
Read more >
Extra characters when pasting into zsh w/ zprezto - Super User
The terminal expects Ctrl-Shift-V for paste. Thanks to muscle memory, ... then Ctrl-Shift-V. This would add those extra characters.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found