Skip to content

Vi-mode doesn't play well with multi-line prompts #3481

@paradox460

Description

@paradox460

I have a multi-line prompt, where there is information displayed on one line, and the user input goes on the second. Basically handled through something like this:

echo -n -e -s (pwd) (__fish_git_prompt)"\n$"

This has worked without flaw in vi-mode in the past. As of version 2.3.1-667-g668de88, and likely caused by #3215, switching modes results in the whole prompt being pushed down, not redrawn over the existing prompt.

<insert mode:>
[ i ] ~/developer/docker
$ docker-compose start api

<switching to normal mode>
[ i ] ~/developer/docker
[ n ] ~/developer/docker
$ docker compose start api

Additionally, the cursor does not redraw as a bar/underscore, but remains how its configured

System info

This issue is new, and cannot be reproduced in the stable (2.3.1) version of fish

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intendedvi-mode

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions