mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
abbr: Fix check for spaces in the name
This used a non-existent variable
This commit is contained in:
parent
135c5a9746
commit
420fa68c54
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ function __fish_abbr_erase --no-scope-shadowing
|
|||
for abbr_name in $argv
|
||||
# Because of the way abbreviations are expanded there can't be any spaces in the key.
|
||||
set -l escaped_name (string escape -- $abbr_name)
|
||||
if string match -q "* *" -- $abbr_old_name
|
||||
if string match -q "* *" -- $abbr_name
|
||||
set -l msg ( _ "%s %s: Abbreviation %s cannot have spaces in the word\n" )
|
||||
printf $msg abbr --erase $escaped_name >&2
|
||||
return 1
|
||||
|
|
Loading…
Reference in a new issue