From 2f4b69cc67e8863e5789817ed5097158e6163621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 29 Dec 2015 08:55:51 +0100 Subject: view: fix new line handling at the end of visible area The last new line is added to the cell matrix but failure is reported to indicate that there is no space left for further characters. --- view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view.c b/view.c index 7b00ae9..8d5ae46 100644 --- a/view.c +++ b/view.c @@ -383,7 +383,7 @@ static bool view_addch(View *view, Cell *cell) { if (view->line) view->line->lineno = lineno + 1; view->col = 0; - return true; + return view->line; default: if ((unsigned char)cell->data[0] < 128 && !isprint((unsigned char)cell->data[0])) { /* non-printable ascii char, represent it as ^(char + 64) */ -- cgit v1.2.3