diff options
author | mathieui <mathieui@mathieui.net> | 2020-05-22 01:32:11 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-05-23 16:10:13 +0200 |
commit | b7423ee43bb14fc97b5db090206cee7a76e8b368 (patch) | |
tree | a3771551450ee001bff82e93b734f4f23e94acc3 /poezio/text_buffer.py | |
parent | e488b75737f0d691b606b4ac00afcae2ea4ed7b0 (diff) | |
download | poezio-b7423ee43bb14fc97b5db090206cee7a76e8b368.tar.gz poezio-b7423ee43bb14fc97b5db090206cee7a76e8b368.tar.bz2 poezio-b7423ee43bb14fc97b5db090206cee7a76e8b368.tar.xz poezio-b7423ee43bb14fc97b5db090206cee7a76e8b368.zip |
Remove "top" message logic
Diffstat (limited to 'poezio/text_buffer.py')
-rw-r--r-- | poezio/text_buffer.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/poezio/text_buffer.py b/poezio/text_buffer.py index 15869676..121a797a 100644 --- a/poezio/text_buffer.py +++ b/poezio/text_buffer.py @@ -163,8 +163,7 @@ class TextBuffer: nick_size=nick_size) if ret_val == 0: ret_val = nb - top = isinstance(msg, Message) and msg.top - if window.pos != 0 and top is False: + if window.pos != 0: window.scroll_up(nb) return min(ret_val, 1) |