Skip to content

Commandline which does not fit screen is not redrawn correctly #7296

Closed

Description

@krobelus

Steps to reproduce:

  1. Create a comandline that exceeds the terminal height:
bind \cg 'commandline -i "echo \'" (seq 1 $LINES)/$LINES "\'"'
  1. Hit Control+G

  2. Observe that fish fails to draw the last line

  3. Type something. The cursor moves but no characters are echoed.

Scrolling up to the prompt I see that fish has started drawing the commandline at the wrong location, resulting in this screen.

$ echo '
  1/59


  2/59
  3/59

Happens at least on 3.1.2 and current master.

Activity

  1. added
    bug
    on Aug 29, 2020
  2. added this to the fish-future milestone on Aug 29, 2020
  3. laserscout commented on Jun 23, 2023

    @laserscout

    I would be really interested in at least a temporary solution for this. Is it so much intertwined to the shell's core making the issue inevitable?

  4. esn89 commented on Jun 14, 2024

    @esn89

    For something that's opened for 4 years, is there a fix? A workaround? Any type of mention would be nice. Even if no known fix

  5. krobelus commented on Oct 21, 2024

    @krobelus
    ContributorAuthor

    as mentioned on reddit, workarounds are alt-e (open command in external editor) or ctrl-x (copy command to clipboard)

  6. modified the milestones: fish-future, fish 4.0 on Oct 25, 2024
  7. added a commit that references this issue on Oct 26, 2024
    04c9134
  8. krobelus commented on Oct 31, 2024

    @krobelus
    ContributorAuthor

    it's already fixed but yeah opening an editor with the (last) command output is a nice feature (available in terminals that support OSC 133). The most obvious UI for that is to use the clipboard to copy the command over. But I guess we can try combining alt-e with that somehow, which also reduces the number of shortcuts to remember

  9. esn89 commented on Jan 31, 2025

    @esn89

    This is fix is coming in the rust rewrite of Fish 4.0.0 right?

  10. locked as resolved and limited conversation to collaborators on Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions