commit c53af3db4ccc5685f6839b768ca40f6f07f5b751
parent 5e42d0b7dbe680c630912169d4fc93e23748c7aa
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Mon, 3 Feb 2020 22:39:03 +0100
rename l to line
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/scroll.c b/scroll.c
@@ -104,7 +104,7 @@ addline(char *str, size_t size)
void
scrollup(void)
{
- struct line *l;
+ struct line *line;
int rows = ws.ws_row-1;
int cols = ws.ws_col;
@@ -123,15 +123,15 @@ scrollup(void)
/* Esc[Line;ColumnH */
write(STDOUT_FILENO, "\033[0;0H", 6);
- for (l = bottom; l != NULL && rows > 0; l = TAILQ_NEXT(l, entries)) {
- rows -= l->len / cols + 1;
+ for (line = bottom; line != NULL && rows > 0; line = TAILQ_NEXT(line, entries)) {
+ rows -= line->len / cols + 1;
//printf("rows: %d\n", rows);
}
- if (l == NULL)
+ if (line == NULL)
return;
- write(STDOUT_FILENO, l->str, l->len);
+ write(STDOUT_FILENO, line->str, line->len);
return;
}