Allow setting :opt:active_border_color to `none` to not draw a border around the active window

Fixes #805
Fixes #1491
This commit is contained in:
Kovid Goyal
2019-03-24 10:04:32 +05:30
parent cb095be0cc
commit fcedc9f5c3
7 changed files with 31 additions and 10 deletions

View File

@@ -16,6 +16,12 @@ def to_color(x):
return as_color(x, validate=True)
def to_color_or_none(x):
if x.lower() == 'none':
return
return to_color(x)
def positive_int(x):
return max(0, int(x))