Describe the bug
When using fzf-tab with starship, completion adds an extra space at the beginning of the line, indenting the whole line. This then messes up in-line editing and display.
This is with v1.2.0-4-gfc6f0dc
I can make sure:
To Reproduce
Steps to reproduce the behavior on MacOS:
- Start from the prompt >
- Type > ~/Down
- Press Tab
- See correct completion but with extra space at the front: > ~/Downloads
The text is indented, but the cursor seems to still think the text is in its old location (no space added). So now typing/deleting messes up the text.
I believe this is an interaction between
- oh-my-zsh (problem goes away if you turn of OMZ)
- starship with the right prompt visible (problem goes away if you turn off the right prompt)
- fzf-tab (problem doesn't occur if you use default OMZ completion)
Expected behavior
I expect the completion to give me the right directory name without shifting the whole line: > ~/Downloads
Screenshots
This screen recording shows the issue: https://share.cleanshot.com/KCrmClHJ
Environment:
- OS: MacOS
- zsh version: zsh 5.9 (arm64-apple-darwin24.0)
Describe the bug
When using fzf-tab with starship, completion adds an extra space at the beginning of the line, indenting the whole line. This then messes up in-line editing and display.
This is with v1.2.0-4-gfc6f0dc
I can make sure:
compinitTo Reproduce
Steps to reproduce the behavior on MacOS:
The text is indented, but the cursor seems to still think the text is in its old location (no space added). So now typing/deleting messes up the text.
I believe this is an interaction between
Expected behavior
I expect the completion to give me the right directory name without shifting the whole line: > ~/Downloads
Screenshots
This screen recording shows the issue: https://share.cleanshot.com/KCrmClHJ
Environment: