Skip to content

alt-left/right overwrites fish_prompt without clearing trailing characters #3550

@artagnon

Description

@artagnon

I have a simple prompt:

function fish_prompt
	set_color yellow
	echo (pwd) | sed -e "s|^$HOME|~|" -e "s|^/sandbox/rramacha|\$s|"
	set_color normal
	echo '$ '
end

When I alt-left from ~/src/llvm/tools/polly/test/ScopDetect to ~/src/jsoncpp, my prompt is mangled:

~/src/jsoncppols/polly/test/ScopDetect
$

Not sure how to work around this except by padding the path with trailing spaces?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions