diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-12-21 07:02:22 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-12-21 07:02:22 +0000 |
commit | cb9ec92655ba41e2a14bdfd8bb929da559805aaa (patch) | |
tree | 065936223c19d17267e1b97a2029ad084cbd6af2 /src/windows.py | |
parent | dc7910570c28a69902ef7e439cecabf8c80cef38 (diff) | |
download | poezio-cb9ec92655ba41e2a14bdfd8bb929da559805aaa.tar.gz poezio-cb9ec92655ba41e2a14bdfd8bb929da559805aaa.tar.bz2 poezio-cb9ec92655ba41e2a14bdfd8bb929da559805aaa.tar.xz poezio-cb9ec92655ba41e2a14bdfd8bb929da559805aaa.zip |
little fix
Diffstat (limited to 'src/windows.py')
-rw-r--r-- | src/windows.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows.py b/src/windows.py index a2c7e72e..3543a171 100644 --- a/src/windows.py +++ b/src/windows.py @@ -529,6 +529,7 @@ class TextWin(Win): self._win.attron(curses.color_pair(theme.COLOR_NEW_TEXT_SEPARATOR)) self.addnstr('- '*(self.width//2), self.width) self._win.attroff(curses.color_pair(theme.COLOR_NEW_TEXT_SEPARATOR)) + self.addstr('\n') def write_text(self, y, x, txt, color, colorized): """ @@ -961,8 +962,7 @@ class Input(Win): with g_lock: self._win.erase() self.addstr(self.text[self.line_pos:self.line_pos+self.width-1]) - cursor_pos = self.pos - self.addstr(0, cursor_pos, '') # WTF, this works but .move() doesn't… + self.addstr(0, self.pos, '') # WTF, this works but .move() doesn't… self._refresh() def refresh(self): |