mcabber
changeset 1955:fad27c72a229
Don't update readmark when buffer scroll_lock is set
| author | Mikael Berthe <mikael@lilotux.net> |
|---|---|
| date | Mon, 14 Mar 2011 15:04:00 +0100 |
| parents | 256cfc706ae5 |
| children | f309f343070c |
| files | mcabber/mcabber/screen.c |
| diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/mcabber/mcabber/screen.c Mon Mar 14 14:25:21 2011 +0100 1.2 +++ b/mcabber/mcabber/screen.c Mon Mar 14 15:04:00 2011 +0100 1.3 @@ -1474,9 +1474,10 @@ 1.4 if (!dont_show) { 1.5 if (win_entry->bd->lock) 1.6 setmsgflg = TRUE; 1.7 - // If this is an outgoing message, update readmark 1.8 - if (!special && (prefix_flags & (HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT_OUT))) 1.9 - hbuf_set_readmark(win_entry->bd->hbuf, FALSE); 1.10 + else 1.11 + // If this is an outgoing message, update readmark 1.12 + if (!special && (prefix_flags & (HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT_OUT))) 1.13 + hbuf_set_readmark(win_entry->bd->hbuf, FALSE); 1.14 // Show and refresh the window 1.15 top_panel(win_entry->panel); 1.16 scr_update_window(win_entry); 1.17 @@ -2820,7 +2821,8 @@ 1.18 win_entry = scr_search_window(CURRENT_JID, isspe); 1.19 if (!win_entry) return; 1.20 1.21 - hbuf_set_readmark(win_entry->bd->hbuf, action); 1.22 + if (!win_entry->bd->lock) 1.23 + hbuf_set_readmark(win_entry->bd->hbuf, action); 1.24 } 1.25 1.26
