summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-08-03 21:23:38 +0200
committerBoris Faure <billiob@gmail.com>2015-08-03 21:23:38 +0200
commit21764bbf85eabe9aab7cb815bc4a49d5f198954f (patch)
tree833f99a82cef22d30c1d948f8e7fc7ce1ea0e1d9
parentf40c63bbb6ba09c37552eaa461b70648e066d0e6 (diff)
remove wrong assert when no backlog ever generated
-rw-r--r--src/bin/termpty.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index dc6db85..a273ebb 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -809,13 +809,8 @@ _termpty_cellrow_from_beacon_get(Termpty *ty, int requested_y, int *wret)
809 int nb_lines; 809 int nb_lines;
810 810
811 ts = BACKLOG_ROW_GET(ty, backlog_y); 811 ts = BACKLOG_ROW_GET(ty, backlog_y);
812 assert (ts->cells);
813 if (!ts->cells) 812 if (!ts->cells)
814 { 813 return NULL;
815 ERR("went too far: requested_y:%d screen_y:%d backlog_y:%d",
816 requested_y, screen_y, backlog_y);
817 return NULL;
818 }
819 nb_lines = (ts->w == 0) ? 1 : (ts->w + ty->w - 1) / ty->w; 814 nb_lines = (ts->w == 0) ? 1 : (ts->w + ty->w - 1) / ty->w;
820 if (!going_forward) { 815 if (!going_forward) {
821 screen_y -= nb_lines; 816 screen_y -= nb_lines;