summaryrefslogtreecommitdiff
path: root/poezio/windows/inputs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-06-29 21:18:09 +0200
committermathieui <mathieui@mathieui.net>2018-06-29 21:34:23 +0200
commit28ce49dcaaa1f7e958e09aff2af7d1e956796ad9 (patch)
treec1ffc7d4f9909080abd6dd2875a66f948879f00f /poezio/windows/inputs.py
parent39695ba42d9183584edb6c6b93b02b04be67f126 (diff)
downloadpoezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.tar.gz
poezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.tar.bz2
poezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.tar.xz
poezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.zip
Update poezio for the new tabs module
Diffstat (limited to 'poezio/windows/inputs.py')
-rw-r--r--poezio/windows/inputs.py5
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