about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-03-31 21:50:33 +0100
committerJames Booth <boothj5@gmail.com>2014-03-31 21:50:33 +0100
commite8e5ab597a6233a8ae7af75aee51451de51ed0e5 (patch)
treed4d31761eafa6bdcee132bb0415f4803d58692ce
parent3fdd9944ab81935a1b51317bff1d55cb2dd69b75 (diff)
downloadprofani-tty-e8e5ab597a6233a8ae7af75aee51451de51ed0e5.tar.gz
Do not scroll to end when chat room message whilst paging
-rw-r--r--src/server_events.c1
-rw-r--r--src/ui/core.c6
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