1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Line removing fixes, /LAST -clear fixed

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1477 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-05-11 14:12:21 +00:00 committed by cras
parent 4e06d50255
commit e3805b63a5
2 changed files with 5 additions and 3 deletions

View File

@ -47,8 +47,8 @@ static void window_lastlog_clear(WINDOW_REC *window)
if (line->info.level & MSGLEVEL_LASTLOG)
textbuffer_view_remove_line(view, line);
}
textbuffer_view_redraw(view);
screen_refresh_thaw();
//gui_window_redraw(window);
}
/* Only unknown keys in `optlist' should be levels.

View File

@ -848,8 +848,10 @@ static void view_bookmarks_check(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
if (rec.remove_list != NULL) {
GList *pos = g_list_find(view->buffer->lines, line);
newline = pos == NULL || pos->prev == NULL ? NULL :
pos->next->data;
(pos->next == NULL ? pos->prev->data :
pos->next->data);
for (tmp = rec.remove_list; tmp != NULL; tmp = tmp->next) {
g_hash_table_remove(view->bookmarks, tmp->data);
if (newline != NULL) {
@ -924,7 +926,7 @@ static void view_remove_line(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line,
from bottom_startline */
view_scroll(view, &view->startline,
&view->subline, -linecount, TRUE);
view->ypos -= realcount;
view->ypos -= linecount-realcount;
} else {
if (view->startline->data == line) {
view->startline =