From ded4e4d98df3c8df20119574c145fe1a736ee994 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Sat, 6 Jan 2018 01:05:35 +0100 Subject: [PATCH] fix redraw --- src/fe-text/mainwindows.c | 2 ++ src/fe-text/textbuffer-view.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index deab8de8..5f24674f 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -1214,6 +1214,8 @@ void mainwindows_redraw_dirty(void) if (rec->dirty) { rec->dirty = FALSE; gui_window_redraw(rec->active); + } else if (WINDOW_GUI(rec->active)->view->dirty) { + gui_window_redraw(rec->active); } } } diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c index b503ec73..b7fdcb7d 100644 --- a/src/fe-text/textbuffer-view.c +++ b/src/fe-text/textbuffer-view.c @@ -854,7 +854,8 @@ static int view_scroll(TEXT_BUFFER_VIEW_REC *view, LINE_REC **lines, /* do not bother with vt400 scroll rectangles for now, redraw the whole view */ - textbuffer_view_redraw(view); + view->dirty = TRUE; + irssi_set_dirty(); } } }