Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/screen.c @ 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 |
comparison
equal
deleted
inserted
replaced
1954:256cfc706ae5 | 1955:fad27c72a229 |
---|---|
1472 } | 1472 } |
1473 | 1473 |
1474 if (!dont_show) { | 1474 if (!dont_show) { |
1475 if (win_entry->bd->lock) | 1475 if (win_entry->bd->lock) |
1476 setmsgflg = TRUE; | 1476 setmsgflg = TRUE; |
1477 // If this is an outgoing message, update readmark | 1477 else |
1478 if (!special && (prefix_flags & (HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT_OUT))) | 1478 // If this is an outgoing message, update readmark |
1479 hbuf_set_readmark(win_entry->bd->hbuf, FALSE); | 1479 if (!special && (prefix_flags & (HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT_OUT))) |
1480 hbuf_set_readmark(win_entry->bd->hbuf, FALSE); | |
1480 // Show and refresh the window | 1481 // Show and refresh the window |
1481 top_panel(win_entry->panel); | 1482 top_panel(win_entry->panel); |
1482 scr_update_window(win_entry); | 1483 scr_update_window(win_entry); |
1483 top_panel(inputPanel); | 1484 top_panel(inputPanel); |
1484 update_panels(); | 1485 update_panels(); |
2818 isspe = buddy_gettype(BUDDATA(current_buddy)) & ROSTER_TYPE_SPECIAL; | 2819 isspe = buddy_gettype(BUDDATA(current_buddy)) & ROSTER_TYPE_SPECIAL; |
2819 if (isspe) return; // Maybe not necessary | 2820 if (isspe) return; // Maybe not necessary |
2820 win_entry = scr_search_window(CURRENT_JID, isspe); | 2821 win_entry = scr_search_window(CURRENT_JID, isspe); |
2821 if (!win_entry) return; | 2822 if (!win_entry) return; |
2822 | 2823 |
2823 hbuf_set_readmark(win_entry->bd->hbuf, action); | 2824 if (!win_entry->bd->lock) |
2825 hbuf_set_readmark(win_entry->bd->hbuf, action); | |
2824 } | 2826 } |
2825 | 2827 |
2826 | 2828 |
2827 // scr_buffer_top_bottom() | 2829 // scr_buffer_top_bottom() |
2828 // Jump to the head/tail of the current buddy window | 2830 // Jump to the head/tail of the current buddy window |