1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 18:53:12 +02:00

New input action "set_unread_current_buffer" to set unread marker for current buffer only (task #7286)

This commit is contained in:
Sebastien Helleu
2008-05-11 11:40:23 +02:00
parent 7871b62ef8
commit 2b1dec1679
4 changed files with 21 additions and 1 deletions
+15
View File
@@ -1323,6 +1323,21 @@ gui_input_set_unread ()
gui_window_redraw_all_buffers ();
}
/*
* gui_input_set_unread_current_buffer: set unread marker for current buffer
*/
void
gui_input_set_unread_current_buffer ()
{
if (gui_current_window
&& (gui_current_window->buffer->type == GUI_BUFFER_TYPE_FORMATED))
gui_current_window->buffer->last_read_line = gui_current_window->buffer->last_line;
/* refresh all windows */
gui_window_redraw_buffer (gui_current_window->buffer);
}
/*
* gui_input_insert: insert a string in command line
* (many default keys are bound to this function)