mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
Merge pull request #56 from ailin-nemui/line-bookmark
fix crash in Perl's $view->set_bookmark
(cherry picked from commit 95e3fea622)
This commit is contained in:
parent
c96a8d9fae
commit
3603d47990
2 changed files with 6 additions and 5 deletions
|
|
@ -49,14 +49,14 @@ textbuffer_view_scroll_line(view, line)
|
|||
Irssi::TextUI::TextBufferView view
|
||||
Irssi::TextUI::Line line
|
||||
CODE:
|
||||
textbuffer_view_scroll_line(view, line->line);
|
||||
textbuffer_view_scroll_line(view, Line(line));
|
||||
|
||||
Irssi::TextUI::LineCache
|
||||
textbuffer_view_get_line_cache(view, line)
|
||||
Irssi::TextUI::TextBufferView view
|
||||
Irssi::TextUI::Line line
|
||||
CODE:
|
||||
RETVAL = textbuffer_view_get_line_cache(view, line->line);
|
||||
RETVAL = textbuffer_view_get_line_cache(view, Line(line));
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ textbuffer_view_remove_line(view, line)
|
|||
Irssi::TextUI::TextBufferView view
|
||||
Irssi::TextUI::Line line
|
||||
CODE:
|
||||
textbuffer_view_remove_line(view, line->line);
|
||||
textbuffer_view_remove_line(view, Line(line));
|
||||
|
||||
void
|
||||
textbuffer_view_remove_all_lines(view)
|
||||
|
|
@ -82,7 +82,7 @@ textbuffer_view_set_bookmark(view, name, line)
|
|||
char *name
|
||||
Irssi::TextUI::Line line
|
||||
CODE:
|
||||
textbuffer_view_set_bookmark(view, name, line->line);
|
||||
textbuffer_view_set_bookmark(view, name, Line(line));
|
||||
|
||||
void
|
||||
textbuffer_view_set_bookmark_bottom(view, name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue