Skip to content

commandline -f repaint not responding to function handlers #8088

Closed

Description

@IlanCosman

fish, version 3.3.0-2-g210dda2c4

This is a regression from 3.2.2. Tested on Arch Linux and macOS.

function fish_prompt
    echo $PWD $foo
end

function on_foo --on-variable foo
    commandline -f repaint
end

The prompt will not update automatically, but pressing any key will update it.

repaint-not-working.mp4

The issue must be with repainting and not --on-variable, because this works:

function on_foo --on-variable foo
    echo $foo
end
on-variable-working.mp4

Activity

  1. changed the title [-]commandline -f repaint not responding to variable handlers[/-] [+]commandline -f repaint not responding to function handlers[/+] on Jun 30, 2021
  2. douglascamata commented on Jun 30, 2021

    @douglascamata

    The "up key acting weirdly" part of this issue is very dangerous 😬

  3. added
    regression
    on Jul 3, 2021
  4. krobelus commented on Jul 3, 2021

    @krobelus
    Contributor

    Mea culpa, thanks for reporting! There should be a patch release with a fix soon.

  5. added this to the fish 3.3.1 milestone on Jul 3, 2021
  6. IlanCosman commented on Jul 3, 2021

    @IlanCosman
    ContributorAuthor

    Can confirm this bug has been fixed on master.

    Mea culpa, thanks for reporting! There should be a patch release with a fix soon.

    Haha, no worries, it's a niche use case that I should have been actively monitoring before the release.

    Thank you for the quick fix @krobelus 😄

  7. deleted a comment from freezlite on Jul 6, 2021
  8. kidonng commented on Jul 18, 2021

    @kidonng
    Contributor

    It is reported that the offending commit is not fully reverted and there are still similar issues for some users.

    @krobelus could you please investigate it?

  9. locked as resolved and limited conversation to collaborators on Jul 18, 2022
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

    regression

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions