aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-12-29 08:55:51 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-12-29 08:55:51 +0100
commit2f4b69cc67e8863e5789817ed5097158e6163621 (patch)
treea1b8e29969edbb2a352e6b0d0dd2688097497535
parent560872ebd773107d52d6e51992713880a715602e (diff)
downloadvis-2f4b69cc67e8863e5789817ed5097158e6163621.tar.gz
vis-2f4b69cc67e8863e5789817ed5097158e6163621.tar.xz
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.
-rw-r--r--view.c2
1 files changed, 1 insertions, 1 deletions
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) */