mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
Remove __fish_command_not_found_handler
This could lead to an infinite loop (well, stack overflow) because fish_command_not_found would also be defined to call __fish_command_not_found_handler. Since this is for - missing command errors - when downgrading we can just remove it.
This commit is contained in:
@@ -258,11 +258,6 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||
__update_cwd_osc # Run once because we might have already inherited a PWD from an old tab
|
||||
end
|
||||
|
||||
# For backwards-compatibility - the event doesn't exist anymore so it's harmless.
|
||||
function __fish_command_not_found_handler --on-event fish_command_not_found
|
||||
fish_command_not_found $argv
|
||||
end
|
||||
|
||||
# Bump this whenever some code below needs to run once when upgrading to a new version.
|
||||
# The universal variable __fish_initialized is initialized in share/config.fish.
|
||||
set __fish_initialized 3100
|
||||
|
||||
Reference in New Issue
Block a user