From cd6a46730a7357618d8df4034fdf2ebf8da4cf3a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Jun 2018 14:48:59 +0530 Subject: [PATCH] ... --- kittens/tui/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittens/tui/operations.py b/kittens/tui/operations.py index 6c0a07eb2..5b75cf906 100644 --- a/kittens/tui/operations.py +++ b/kittens/tui/operations.py @@ -232,7 +232,7 @@ def set_default_colors(fg=None, bg=None, cursor=None, select_bg=None, select_fg= def item(which, num): nonlocal ans - if item is None: + if which is None: ans += '\x1b]1{}\x1b\\'.format(num) else: ans += '\x1b]{};{}\x1b\\'.format(num, color_as_sharp(which if isinstance(which, Color) else to_color(which)))