mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
webconfig: Allow setting a variable to empty
This commit is contained in:
parent
b98f71c16f
commit
c75ecf9b03
|
@ -1110,7 +1110,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||
"Sets a color for a fish color name, like 'autosuggestion'"
|
||||
if not name:
|
||||
raise ValueError
|
||||
if not color:
|
||||
if not color and not color == "":
|
||||
color = "normal"
|
||||
varname = "fish_color_" + name
|
||||
# If the name already starts with "fish_", use it as the varname
|
||||
|
|
Loading…
Reference in New Issue
Block a user