chore: update Linenoise.c (#21)

colum -> column
This commit is contained in:
Ikko Eltociear Ashimine 2025-03-01 09:12:53 +09:00 committed by GitHub
parent f84e609692
commit caf7a093d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -587,7 +587,7 @@ static void refreshMultiLine(struct linenoiseState *l, int flags) {
int rows = (plen + l->len + l->cols - 1) / l->cols; /* rows used by current buf. */ int rows = (plen + l->len + l->cols - 1) / l->cols; /* rows used by current buf. */
int rpos = (plen + l->oldpos + l->cols) / l->cols; /* cursor relative row. */ int rpos = (plen + l->oldpos + l->cols) / l->cols; /* cursor relative row. */
int rpos2; /* rpos after refresh. */ int rpos2; /* rpos after refresh. */
int col; /* colum position, zero-based. */ int col; /* column position, zero-based. */
int old_rows = l->oldrows; int old_rows = l->oldrows;
int fd = l->ofd, j; int fd = l->ofd, j;
struct abuf ab; struct abuf ab;
@ -1331,4 +1331,4 @@ int linenoiseHistoryLoad(const char *filename) {
} }
fclose(fp); fclose(fp);
return 0; return 0;
} }