Skip to content

Infinite loop report on fish 4.2+ (don't have older install to test) #1

@lexpierce

Description

@lexpierce
~/.local/share/tirith/shell/lib/fish-hook.fish (line 57): The call stack limit has been exceeded. Do you have an accidental infinite loop?
    if functions -q _tirith_original_fish_user_key_bindings
        _tirith_original_fish_user_key_bindings
    end

    # Override Enter
    bind \r _tirith_check_command
    bind \n _tirith_check_command

    # Paste interception (Ctrl+V only; right-click and middle-click paste are not intercepted)
    bind \cv _tirith_check_paste
    ^
in function '_tirith_original_fish_user_key_bindings'
        called on line 58 of file ~/.local/share/tirith/shell/lib/fish-hook.fish
in function '_tirith_original_fish_user_key_bindings'
        called on line 58 of file ~/.local/share/tirith/shell/lib/fish-hook.fish

… repeated a great many times …

in function '_tirith_original_fish_user_key_bindings'
        called on line 58 of file ~/.local/share/tirith/shell/lib/fish-hook.fish
in function '_tirith_original_fish_user_key_bindings'
        called on line 58 of file ~/.local/share/tirith/shell/lib/fish-hook.fish
in function '_tirith_original_fish_user_key_bindings'
        called on line 58 of file ~/.local/share/tirith/shell/lib/fish-hook.fish
in function 'fish_user_key_bindings'
in function '__fish_reload_key_bindings'
in function '__fish_config_interactive'
in function '__fish_on_interactive'

This is true if I use eval (tirith init) or what I feel is the more idiomatic fish, tirith init | source

Testing 0.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions