Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG] compinit interactive mode overwrites command line
- X-seq: zsh-workers 53559
- From: Andrea Manenti <andrea.manenti@xxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: [BUG] compinit interactive mode overwrites command line
- Date: Wed, 07 May 2025 20:02:17 +0000
- Archived-at: <https://zsh.org/workers/53559>
- Feedback-id: 74349447:user:proton
- List-id: <zsh-workers.zsh.org>
This bug was opened long ago but received no activity. I am reopening a new one hoping to give it more visibility.
## Steps for reproducing
```
% autoload -Uz compinit
% compinit
% zstyle ':completion:*' menu yes select interactive
% ls Do rest-of-command
interactive: Do[]
Documents/ Downloads/
```
Clicking a down arrow or a tab results in
```
% ls Downloads/-command
Documents/ Downloads/
```
## Issue
If a completion is triggered in the middle of a command, what comes next is overwritten. It should be shifted to the right instead.
Important point for reproducing: this only happens if there are *more than one option*.
## Relevant links:
Messages sorted by:
Reverse Date,
Date,
Thread,
Author