diff options
author | mathieui <mathieui@mathieui.net> | 2012-03-30 15:57:43 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-03-30 15:57:43 +0200 |
commit | 372b032380ff3703f1458fd965f5a8431c53f7bc (patch) | |
tree | c25792a8c3e05c08def5f477ad111e048c482c00 /src | |
parent | 12e6de0cdcf5f3cda318283c7c20402b9615824d (diff) | |
download | poezio-372b032380ff3703f1458fd965f5a8431c53f7bc.tar.gz poezio-372b032380ff3703f1458fd965f5a8431c53f7bc.tar.bz2 poezio-372b032380ff3703f1458fd965f5a8431c53f7bc.tar.xz poezio-372b032380ff3703f1458fd965f5a8431c53f7bc.zip |
Should fix the refresh issue
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmark.py | 2 | ||||
-rw-r--r-- | src/config.py | 2 | ||||
-rw-r--r-- | src/core.py | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/bookmark.py b/src/bookmark.py index 9f633ba5..38979697 100644 --- a/src/bookmark.py +++ b/src/bookmark.py @@ -141,7 +141,7 @@ def save_remote(xmpp, method="privatexml"): def save_local(): """Save the local bookmarks.""" - all = ''.join([bookmark.local() for bookmark in bookmarks if bookmark.method is 'local']) + all = ''.join(bookmark.local() for bookmark in bookmarks if bookmark.method is 'local') config.set_and_save('rooms', all) def save(xmpp, core=None): diff --git a/src/config.py b/src/config.py index d0320a0a..b4b07491 100644 --- a/src/config.py +++ b/src/config.py @@ -109,7 +109,7 @@ class Config(RawConfigParser): exist """ df = open(self.file_name, 'r') - lines_before = [line.strip() for line in df.readlines()] + lines_before = (line.strip() for line in df.readlines()) df.close() result_lines = [] we_are_in_the_right_section = False diff --git a/src/core.py b/src/core.py index f06b7c83..af5dde96 100644 --- a/src/core.py +++ b/src/core.py @@ -1335,10 +1335,14 @@ class Core(object): if tab is self.current_tab(): tab.text_win.refresh() tab.info_header.refresh(tab, tab.text_win) + tab.input.refresh() + self.doupdate() elif tab.state != old_state: self.refresh_tab_win() + self.current_tab().input.refresh() + self.doupdate() if 'message' in config.get('beep_on', 'highlight private').split(): - if config.get_by_tabname('disable_beep', 'false', jid.bare, False).lower() != 'true': + if config.get_by_tabname('disable_beep', 'false', room_from, False).lower() != 'true': curses.beep() def add_message_to_text_buffer(self, buff, txt, time=None, nickname=None, history=None): |