comparison mcabber/mcabber/screen.c @ 1956:f309f343070c

Add command /buffer readmark
author Mikael Berthe <mikael@lilotux.net>
date Mon, 14 Mar 2011 23:16:11 +0100
parents fad27c72a229
children e3e8fb918d56
comparison
equal deleted inserted replaced
1955:fad27c72a229 1956:f309f343070c
2944 2944
2945 // Finished :) 2945 // Finished :)
2946 update_panels(); 2946 update_panels();
2947 } 2947 }
2948 2948
2949 // scr_buffer_jump_readmark()
2950 // Jump to the buffer readmark, if there's one
2951 void scr_buffer_jump_readmark(void)
2952 {
2953 winbuf *win_entry;
2954 GList *search_res;
2955 guint isspe;
2956
2957 // Get win_entry
2958 if (!current_buddy) return;
2959 isspe = buddy_gettype(BUDDATA(current_buddy)) & ROSTER_TYPE_SPECIAL;
2960 if (isspe) return;
2961 win_entry = scr_search_window(CURRENT_JID, isspe);
2962 if (!win_entry) return;
2963
2964 search_res = hbuf_jump_readmark(win_entry->bd->hbuf);
2965
2966 win_entry->bd->cleared = FALSE;
2967 win_entry->bd->top = search_res;
2968
2969 // Refresh the window
2970 scr_update_window(win_entry);
2971
2972 // Finished :)
2973 update_panels();
2974 }
2975
2949 // scr_buffer_dump(filename) 2976 // scr_buffer_dump(filename)
2950 // Dump the current buffer content to the specified file. 2977 // Dump the current buffer content to the specified file.
2951 void scr_buffer_dump(const char *file) 2978 void scr_buffer_dump(const char *file)
2952 { 2979 {
2953 char *extfname; 2980 char *extfname;