diff options
author | James Booth <boothj5@gmail.com> | 2014-03-31 21:50:33 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-03-31 21:50:33 +0100 |
commit | e8e5ab597a6233a8ae7af75aee51451de51ed0e5 (patch) | |
tree | d4d31761eafa6bdcee132bb0415f4803d58692ce | |
parent | 3fdd9944ab81935a1b51317bff1d55cb2dd69b75 (diff) | |
download | profani-tty-e8e5ab597a6233a8ae7af75aee51451de51ed0e5.tar.gz |
Do not scroll to end when chat room message whilst paging
-rw-r--r-- | src/server_events.c | 1 | ||||
-rw-r--r-- | src/ui/core.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/server_events.c b/src/server_events.c index c5a3594e..3b2967f7 100644 --- a/src/server_events.c +++ b/src/server_events.c @@ -191,7 +191,6 @@ handle_room_message(const char * const room_jid, const char * const nick, const char * const message) { ui_room_message(room_jid, nick, message); - ui_current_page_off(); if (prefs_get_boolean(PREF_GRLOG)) { Jid *jid = jid_create(jabber_get_fulljid()); diff --git a/src/ui/core.c b/src/ui/core.c index 4a8a984f..b6032c8e 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -1331,6 +1331,12 @@ _ui_room_message(const char * const room_jid, const char * const nick, jid_destroy(jidp); } } + + ProfWin *current = wins_get_current(); + if (!current->paged) { + win_move_to_end(current); + win_refresh(current); + } } static void |