mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Add Irssi::UI::Window::get_history_lines to get the content of a window's
history. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4993 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
822e6caee8
commit
508f8e1ddb
@ -243,6 +243,17 @@ CODE:
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
void
|
||||
window_get_history_lines(window)
|
||||
Irssi::UI::Window window
|
||||
PREINIT:
|
||||
HISTORY_REC *rec;
|
||||
GList *tmp;
|
||||
PPCODE:
|
||||
rec = command_history_current(window);
|
||||
for (tmp = rec->list; tmp != NULL; tmp = tmp->next)
|
||||
XPUSHs(sv_2mortal(new_pv(tmp->data)));
|
||||
|
||||
#*******************************
|
||||
MODULE = Irssi::UI::Window PACKAGE = Irssi::Windowitem PREFIX = window_item_
|
||||
#*******************************
|
||||
|
Loading…
Reference in New Issue
Block a user