diff options
author | Elis Axelsson <elis.axelsson@gmail.com> | 2016-05-06 16:15:47 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-05-06 16:15:47 +0200 |
commit | 1c6f6df2b3ae4a13d89242964ca3dbd3c146d1fe (patch) | |
tree | d3065c70ddf26ed4eb3170d8ee5b05fc6dfeda6b /share | |
parent | bc6cc4c10566f140c6c0575da8153c58fd8772c4 (diff) |
Change abbr to allow non-letter keys (#2996)
Diffstat (limited to 'share')
-rw-r--r-- | share/functions/abbr.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/abbr.fish b/share/functions/abbr.fish index bb50ec02..8606f84b 100644 --- a/share/functions/abbr.fish +++ b/share/functions/abbr.fish @@ -85,7 +85,7 @@ function abbr --description "Manage abbreviations" set key $kv[1] set value $kv[2] # ensure the key contains at least one non-space character - if not string match -qr "\w" -- $key + if not string match -qr "[^\s]" -- $key printf ( _ "%s: abbreviation must have a non-empty key\n" ) abbr >&2 return 1 end |