diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-11-14 12:13:03 +0000 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-11-14 12:13:03 +0000 |
commit | bd7b52988c99ef34fd49f52c8a9d335941144450 (patch) | |
tree | 2616f8245dc94433eb3a14e4b5b18f34b61c3030 /poezio/windows | |
parent | 395435c68dc656641e7bdb53da88773482dd55b5 (diff) | |
download | poezio-bd7b52988c99ef34fd49f52c8a9d335941144450.tar.gz poezio-bd7b52988c99ef34fd49f52c8a9d335941144450.tar.bz2 poezio-bd7b52988c99ef34fd49f52c8a9d335941144450.tar.xz poezio-bd7b52988c99ef34fd49f52c8a9d335941144450.zip |
yapf -ir
Diffstat (limited to 'poezio/windows')
-rw-r--r-- | poezio/windows/base_wins.py | 3 | ||||
-rw-r--r-- | poezio/windows/inputs.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/poezio/windows/base_wins.py b/poezio/windows/base_wins.py index 8163dad5..70271765 100644 --- a/poezio/windows/base_wins.py +++ b/poezio/windows/base_wins.py @@ -101,7 +101,8 @@ class Win(object): if y is not None and x is not None: self.move(y, x) next_attr_char = text.find(FORMAT_CHAR) - attr_italic = curses.A_ITALIC if hasattr(curses, 'A_ITALIC') else curses.A_REVERSE + attr_italic = curses.A_ITALIC if hasattr( + curses, 'A_ITALIC') else curses.A_REVERSE while next_attr_char != -1 and text: if next_attr_char + 1 < len(text): attr_char = text[next_attr_char + 1].lower() diff --git a/poezio/windows/inputs.py b/poezio/windows/inputs.py index d2ea5fbb..512395f0 100644 --- a/poezio/windows/inputs.py +++ b/poezio/windows/inputs.py @@ -485,7 +485,8 @@ class Input(Win): if y is not None and x is not None: self.move(y, x) format_char = find_first_format_char(text, chars) - attr_italic = curses.A_ITALIC if hasattr(curses, 'A_ITALIC') else curses.A_REVERSE + attr_italic = curses.A_ITALIC if hasattr( + curses, 'A_ITALIC') else curses.A_REVERSE while format_char != -1: if text[format_char] == '\n': attr_char = '|' |