mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -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:
parent
4e06d50255
commit
e3805b63a5
@ -47,8 +47,8 @@ static void window_lastlog_clear(WINDOW_REC *window)
|
|||||||
if (line->info.level & MSGLEVEL_LASTLOG)
|
if (line->info.level & MSGLEVEL_LASTLOG)
|
||||||
textbuffer_view_remove_line(view, line);
|
textbuffer_view_remove_line(view, line);
|
||||||
}
|
}
|
||||||
|
textbuffer_view_redraw(view);
|
||||||
screen_refresh_thaw();
|
screen_refresh_thaw();
|
||||||
//gui_window_redraw(window);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Only unknown keys in `optlist' should be levels.
|
/* Only unknown keys in `optlist' should be levels.
|
||||||
|
@ -848,8 +848,10 @@ static void view_bookmarks_check(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
|
|||||||
|
|
||||||
if (rec.remove_list != NULL) {
|
if (rec.remove_list != NULL) {
|
||||||
GList *pos = g_list_find(view->buffer->lines, line);
|
GList *pos = g_list_find(view->buffer->lines, line);
|
||||||
|
|
||||||
newline = pos == NULL || pos->prev == NULL ? NULL :
|
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) {
|
for (tmp = rec.remove_list; tmp != NULL; tmp = tmp->next) {
|
||||||
g_hash_table_remove(view->bookmarks, tmp->data);
|
g_hash_table_remove(view->bookmarks, tmp->data);
|
||||||
if (newline != NULL) {
|
if (newline != NULL) {
|
||||||
@ -924,7 +926,7 @@ static void view_remove_line(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line,
|
|||||||
from bottom_startline */
|
from bottom_startline */
|
||||||
view_scroll(view, &view->startline,
|
view_scroll(view, &view->startline,
|
||||||
&view->subline, -linecount, TRUE);
|
&view->subline, -linecount, TRUE);
|
||||||
view->ypos -= realcount;
|
view->ypos -= linecount-realcount;
|
||||||
} else {
|
} else {
|
||||||
if (view->startline->data == line) {
|
if (view->startline->data == line) {
|
||||||
view->startline =
|
view->startline =
|
||||||
|
Loading…
Reference in New Issue
Block a user