1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Do not scroll to end when chat room message whilst paging

This commit is contained in:
James Booth 2014-03-31 21:50:33 +01:00
parent 3fdd9944ab
commit e8e5ab597a
2 changed files with 6 additions and 1 deletions

View File

@ -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());

View File

@ -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