diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-12-29 08:55:51 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-12-29 08:55:51 +0100 |
| commit | 2f4b69cc67e8863e5789817ed5097158e6163621 (patch) | |
| tree | a1b8e29969edbb2a352e6b0d0dd2688097497535 | |
| parent | 560872ebd773107d52d6e51992713880a715602e (diff) | |
| download | vis-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) */ |
