diff options
author | mathieui <mathieui@mathieui.net> | 2018-07-21 17:09:52 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-07-21 17:09:52 +0200 |
commit | ea2d76864da2448152428a62fe5c7daaea6ab0d3 (patch) | |
tree | 7ac279bb9b1efbe6025a0435d4a121f11080fcb0 /poezio/windows/inputs.py | |
parent | 3ec153a6a01faca5445bb7c21e0d427bb5096320 (diff) | |
download | poezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.tar.gz poezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.tar.bz2 poezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.tar.xz poezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.zip |
yapf -rip
Diffstat (limited to 'poezio/windows/inputs.py')
-rw-r--r-- | poezio/windows/inputs.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/poezio/windows/inputs.py b/poezio/windows/inputs.py index 6956f4f6..6453205c 100644 --- a/poezio/windows/inputs.py +++ b/poezio/windows/inputs.py @@ -522,9 +522,8 @@ class Input(Win): self._win.erase() if self.color: self._win.attron(to_curses_attr(self.color)) - displayed_text = text[self.view_pos: - self.view_pos + self.width - 1].replace( - '\t', '\x18') + displayed_text = text[self.view_pos:self.view_pos + self.width - + 1].replace('\t', '\x18') self._win.attrset(0) self._addstr_colored_lite(displayed_text) # Fill the rest of the line with the input color |