Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/screen.c @ 1968:83d7c7daea6a
buffer readmark: don't update the screen when there is no mark
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 18 Mar 2011 19:39:58 +0100 |
parents | ec737f5f1d6f |
children | d9255c408027 |
comparison
equal
deleted
inserted
replaced
1967:f016c9c9d992 | 1968:83d7c7daea6a |
---|---|
2987 win_entry = scr_search_window(CURRENT_JID, isspe); | 2987 win_entry = scr_search_window(CURRENT_JID, isspe); |
2988 if (!win_entry) return; | 2988 if (!win_entry) return; |
2989 | 2989 |
2990 search_res = hbuf_jump_readmark(win_entry->bd->hbuf); | 2990 search_res = hbuf_jump_readmark(win_entry->bd->hbuf); |
2991 | 2991 |
2992 if (!search_res) { | |
2993 scr_log_print(LPRINT_NORMAL, "Readmark not found."); | |
2994 return; | |
2995 } | |
2996 | |
2992 win_entry->bd->cleared = FALSE; | 2997 win_entry->bd->cleared = FALSE; |
2993 win_entry->bd->top = search_res; | 2998 win_entry->bd->top = search_res; |
2994 | |
2995 if (!search_res) | |
2996 scr_log_print(LPRINT_NORMAL, "Readmark not found."); | |
2997 | 2999 |
2998 // Refresh the window | 3000 // Refresh the window |
2999 scr_update_window(win_entry); | 3001 scr_update_window(win_entry); |
3000 | 3002 |
3001 // Finished :) | 3003 // Finished :) |