Closed Programie closed 2 months ago
@Programie my hunch is that the _set_posh_cursor_position
function is responsible for this one. Does it occur when you set disable_cursor_positioning
to false
in the config (root of the configuration).
I just tried your suggested configuration option.
Setting it to false
does not change anything, but changing it to true
fixes the issue for me. But what's the downside of enabling that option?
@Programie you're right, I made a mistake there. The downside is that now oh-my-posh can't know if we're at the top of the terminal to not print the initial newline you have in the first block in your config. Nothing else. The echo to fetch the position is what eats your characters. There's no fix for this other than it being one or the other.
Code of Conduct
What happened?
Starting up my shell usually takes around 1 to 2 seconds. My habit is to already start typing the command I want to execute while the shell starts up whenever I open a new terminal tab or connect to a server via SSH. But in case of oh-my-posh, the part already entered while the shell starts up is not kept.
This clearly looks like an issue with oh-my-posh because I can't reproduce the issue whenever I remove the invocation of oh-my-posh from my shell's rc file.
This seems to be related to #3446.
Theme
What OS are you seeing the problem on?
Linux
Which shell are you using?
zsh
Log output