summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-08-01 13:38:12 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-08-01 13:38:12 +0200
commit3ec9e80de48225c7f27c19cdc0546762c042d0d1 (patch)
treed7f3cbba4de7ce2427c5da05c51a58bc8c8ce6c2
parentd84071a80454b1edbe6497eda5e23365bd0158a4 (diff)
downloadpoezio-3ec9e80de48225c7f27c19cdc0546762c042d0d1.tar.gz
poezio-3ec9e80de48225c7f27c19cdc0546762c042d0d1.tar.bz2
poezio-3ec9e80de48225c7f27c19cdc0546762c042d0d1.tar.xz
poezio-3ec9e80de48225c7f27c19cdc0546762c042d0d1.zip
Little comments fix
-rw-r--r--src/core/core.py6
-rw-r--r--src/tabs/basetabs.py5
2 files changed, 4 insertions, 7 deletions
diff --git a/src/core/core.py b/src/core/core.py
index 75a3d7f5..6821df92 100644
--- a/src/core/core.py
+++ b/src/core/core.py
@@ -1599,9 +1599,9 @@ class Core(object):
Called when we want to resize the screen
"""
# If we have the tabs list on the left, we just give a truncated
- # window to each Tab class, so the draw themself in the portion
- # of the screen that the can occupy, and we draw the tab list
- # on the left remaining space
+ # window to each Tab class, so they draw themself in the portion of
+ # the screen that they can occupy, and we draw the tab list on the
+ # remaining space, on the left
with g_lock:
height, width = self.stdscr.getmaxyx()
if (config.get('enable_vertical_tab_list', False) and
diff --git a/src/tabs/basetabs.py b/src/tabs/basetabs.py
index 95e47e4e..5be8a9d1 100644
--- a/src/tabs/basetabs.py
+++ b/src/tabs/basetabs.py
@@ -447,12 +447,9 @@ class ChatTab(Tab):
self.text_win = None
self._text_buffer = TextBuffer()
self.chatstate = None # can be "active", "composing", "paused", "gone", "inactive"
- # We keep a weakref of the event that will set our chatstate to "paused", so that
+ # We keep a reference of the event that will set our chatstate to "paused", so that
# we can delete it or change it if we need to
self.timed_event_paused = None
- # if that’s None, then no paused chatstate was sent recently
- # if that’s a weakref returning None, then a paused chatstate was sent
- # since the last input
# Keeps the last sent message to complete it easily in completion_correct, and to replace it.
self.last_sent_message = None
self.key_func['M-v'] = self.move_separator