summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-windows.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-12-03 04:44:36 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-12-03 04:44:36 +0000
commit14dfacdb5f3d2849526ce06ad5a143ba23eda378 (patch)
tree14249dc058a6a44eabbc2336ff54b1bfbeec3abc /src/fe-text/gui-windows.c
parentb3a642e548724ff131ae2bb86bbbb6d80308483b (diff)
downloadirssi-14dfacdb5f3d2849526ce06ad5a143ba23eda378.zip
Don't redraw screen when trying to scroll up at the start of scrollback
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@938 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-windows.c')
-rw-r--r--src/fe-text/gui-windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c
index 34c6c719..02f225b8 100644
--- a/src/fe-text/gui-windows.c
+++ b/src/fe-text/gui-windows.c
@@ -645,7 +645,7 @@ void gui_window_scroll(WINDOW_REC *window, int lines)
gui = WINDOW_GUI(window);
if (lines < 0) {
- if (gui->startline == NULL)
+ if (gui->startline == NULL || gui->startline->prev == NULL)
return;
gui_window_scroll_up(gui, -lines);
} else {