comparison mcabber/mcabber/screen.c @ 1957:e3e8fb918d56

Be more verbose when the buffer search commands are not successful
author Mikael Berthe <mikael@lilotux.net>
date Mon, 14 Mar 2011 23:19:55 +0100
parents f309f343070c
children b596bcff758e
comparison
equal deleted inserted replaced
1956:f309f343070c 1957:e3e8fb918d56
2883 scr_update_window(win_entry); 2883 scr_update_window(win_entry);
2884 2884
2885 // Finished :) 2885 // Finished :)
2886 update_panels(); 2886 update_panels();
2887 } else 2887 } else
2888 scr_LogPrint(LPRINT_NORMAL, "Search string not found"); 2888 scr_LogPrint(LPRINT_NORMAL, "Search string not found.");
2889 } 2889 }
2890 2890
2891 // scr_buffer_percent(n) 2891 // scr_buffer_percent(n)
2892 // Jump to the specified position in the buffer, in % 2892 // Jump to the specified position in the buffer, in %
2893 void scr_buffer_percent(int pc) 2893 void scr_buffer_percent(int pc)
2936 2936
2937 search_res = hbuf_jump_date(win_entry->bd->hbuf, t); 2937 search_res = hbuf_jump_date(win_entry->bd->hbuf, t);
2938 2938
2939 win_entry->bd->cleared = FALSE; 2939 win_entry->bd->cleared = FALSE;
2940 win_entry->bd->top = search_res; 2940 win_entry->bd->top = search_res;
2941
2942 if (!search_res)
2943 scr_log_print(LPRINT_NORMAL, "Date not found.");
2941 2944
2942 // Refresh the window 2945 // Refresh the window
2943 scr_update_window(win_entry); 2946 scr_update_window(win_entry);
2944 2947
2945 // Finished :) 2948 // Finished :)
2963 2966
2964 search_res = hbuf_jump_readmark(win_entry->bd->hbuf); 2967 search_res = hbuf_jump_readmark(win_entry->bd->hbuf);
2965 2968
2966 win_entry->bd->cleared = FALSE; 2969 win_entry->bd->cleared = FALSE;
2967 win_entry->bd->top = search_res; 2970 win_entry->bd->top = search_res;
2971
2972 if (!search_res)
2973 scr_log_print(LPRINT_NORMAL, "Readmark not found.");
2968 2974
2969 // Refresh the window 2975 // Refresh the window
2970 scr_update_window(win_entry); 2976 scr_update_window(win_entry);
2971 2977
2972 // Finished :) 2978 // Finished :)