-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alt-c overwrites prompt that is in next line #3765
Comments
Note that if I execute after leaving the |
Also, why do I get |
this is probably how u play with fzf, i got this issue before, but it does not appear now. |
@tmpm697 I'm not entirely sure what you mean by "how you play with fzf" I'm just using the default keybindings. The only thing I have in my
|
That's because ALT-C uses a different mechanism than the others. No Lines 126 to 144 in 7bac1a7
The reason we decided to use this method (only for ALT-C) can be found here: #2674 (and an older one: #546 (comment)) I have no experience with starship, so I'm currently unaware of how you can work around the issue. |
Ok, I narrowed it down a bit. This is pretty much what starship does when I have deleted most of the things that aren't relevant to my issue:
Edit: Ok github doesn't render all of the "characters" in the file so here is the file: |
Did a little bit more digging. So, I have WezTerm installed, and it supports prompt scrolling: See here. To accomplish this it injects OSC 133 before and after my prompt, so effectively it does:
This seems to be what triggers my issue. So if put
in my .bashrc, I get the cursor starts at the beginning of prompt when I exit |
Checklist
man fzf
)Output of
fzf --version
0.48.1 (9ffe951)
OS
Shell
Problem / Steps to reproduce
I'm using starship and have a theme where the prompt continues on the next line. If I use
Alt+C
to cd the curser ends up before the prompt:When I go out of
vi-insert-mode
the prompt overwrites what was writtenEdit:
This is what I have in my
.bashrc
The starship config can be found here
The text was updated successfully, but these errors were encountered: