mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
webconfig: separate arguments to abbr
`abbr` used to take a single argument and split in on the first space,
but 309e10e7
and predecessors altered this behaviour. Update the web
config use of abbr to the newer format.
Fixes #3620.
This commit is contained in:
parent
42eaacd3a1
commit
41acaced3f
1 changed files with 3 additions and 3 deletions
|
@ -842,10 +842,10 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||
return True
|
||||
|
||||
def do_save_abbreviation(self, abbreviation):
|
||||
out, err = run_fish_cmd('abbr --add \'%s %s\'' % (
|
||||
out, err = run_fish_cmd('abbr --add \'%s\' \'%s\'' % (
|
||||
abbreviation['word'], abbreviation['phrase']))
|
||||
if err:
|
||||
return err
|
||||
if out or err:
|
||||
return out
|
||||
else:
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in a new issue