roundy icon indicating copy to clipboard operation
roundy copied to clipboard

Duplicate first character on tab/paste/etc.

Open szuhaydv opened this issue 1 year ago • 1 comments

Having an issue where on tab completions or pasting the first letter of the command that was completed or pasted in gets duplicated

Example pasting echo $PROMPT results in eecho $PROMPT and the first character can't even be deleted, it's just permanently painted until you move on to the next command

Tried Maybe caused by conflict with other things on my machine, but tried it with an isolated .zshrc (e.g. with roundy being the only thing sourced)

Environment ARM64 Darwin (MacBook Air M1) with kitty terminal

szuhaydv avatar Feb 04 '25 20:02 szuhaydv

After some digging found the recommendation to put %{ %} at the end of the prompt line, recommended in a forum thread

Based on this I ended up changing a line in the roundy.zsh file, towards the end of the roundy_prompt_left() I changed: p+="%f%{ %}" which fixed my issue

szuhaydv avatar Feb 04 '25 21:02 szuhaydv

@szuhaydv this is probably fixed here 🫥

github.com/metaory/zsh-roundy-prompt

metaory avatar Mar 16 '25 08:03 metaory

@metaory thank you, starred! :D

szuhaydv avatar Mar 16 '25 20:03 szuhaydv