From 372b032380ff3703f1458fd965f5a8431c53f7bc Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 30 Mar 2012 15:57:43 +0200 Subject: Should fix the refresh issue --- src/bookmark.py | 2 +- src/config.py | 2 +- src/core.py | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src') 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): -- cgit v1.2.3