summaryrefslogtreecommitdiff
path: root/poezio/tabs
diff options
context:
space:
mode:
authorMadhur Garg <madhurgarg96@gmail.com>2019-08-10 15:21:59 +0530
committerMadhur Garg <madhurgarg96@gmail.com>2019-08-22 00:54:25 +0530
commitc5ef5b0421d8fd80a00497f8529bff6304615fbe (patch)
treec935be5eb8740318161e811cc787ea34a7dc7071 /poezio/tabs
parentbb20db0d0a3d0dbe2b3abea10acd15c29f1f61ba (diff)
downloadpoezio-c5ef5b0421d8fd80a00497f8529bff6304615fbe.tar.gz
poezio-c5ef5b0421d8fd80a00497f8529bff6304615fbe.tar.bz2
poezio-c5ef5b0421d8fd80a00497f8529bff6304615fbe.tar.xz
poezio-c5ef5b0421d8fd80a00497f8529bff6304615fbe.zip
Changed the parameter from 'self' to 'tab' where the function is not a method.
Diffstat (limited to 'poezio/tabs')
-rw-r--r--poezio/tabs/basetabs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index 9ee71070..ae133dfb 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -927,8 +927,9 @@ class ChatTab(Tab):
return self.text_win.scroll_down(1)
def on_scroll_up(self):
+ tab = self
if self.query_id == 0:
- return mam.mam_scroll(self)
+ return mam.mam_scroll(tab)
else:
return self.text_win.scroll_up(self.text_win.height - 1)