mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-30 06:03:49 +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'"
|
"Sets a color for a fish color name, like 'autosuggestion'"
|
||||||
if not name:
|
if not name:
|
||||||
raise ValueError
|
raise ValueError
|
||||||
if not color:
|
if not color and not color == "":
|
||||||
color = "normal"
|
color = "normal"
|
||||||
varname = "fish_color_" + name
|
varname = "fish_color_" + name
|
||||||
# If the name already starts with "fish_", use it as the varname
|
# If the name already starts with "fish_", use it as the varname
|
||||||
|
|
Loading…
Reference in New Issue
Block a user