From b36dd92db8924bb5ca71f252c3ddc048ee1d7a80 Mon Sep 17 00:00:00 2001 From: toshokan Date: Tue, 17 Nov 2020 16:19:38 -0500 Subject: [PATCH 1/2] Fix README typo --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 1afea2ae..40300238 100644 --- a/README.markdown +++ b/README.markdown @@ -102,7 +102,7 @@ You can disable it using `0` as argument. ## History -Linenoise supporst history, so that the user does not have to retype +Linenoise supports history, so that the user does not have to retype again and again the same things, but can use the down and up arrows in order to search and re-edit already inserted lines of text. From a5ecf60fb91cf8b3ac3d7b4be8a65b932a39368c Mon Sep 17 00:00:00 2001 From: toshokan Date: Thu, 19 Nov 2020 01:43:23 -0500 Subject: [PATCH 2/2] More typos --- linenoise.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linenoise.c b/linenoise.c index cfe51e76..7c90e2f1 100644 --- a/linenoise.c +++ b/linenoise.c @@ -566,7 +566,7 @@ static void refreshMultiLine(struct linenoiseState *l) { 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 rpos2; /* rpos after refresh. */ - int col; /* colum position, zero-based. */ + int col; /* column position, zero-based. */ int old_rows = l->maxrows; int fd = l->ofd, j; struct abuf ab; @@ -625,7 +625,7 @@ static void refreshMultiLine(struct linenoiseState *l) { rpos2 = (plen+l->pos+l->cols)/l->cols; /* current cursor relative row. */ lndebug("rpos2 %d", rpos2); - /* Go up till we reach the expected positon. */ + /* Go up till we reach the expected position. */ if (rows-rpos2 > 0) { lndebug("go-up %d", rows-rpos2); snprintf(seq,64,"\x1b[%dA", rows-rpos2); @@ -767,7 +767,7 @@ void linenoiseEditBackspace(struct linenoiseState *l) { } } -/* Delete the previosu word, maintaining the cursor at the start of the +/* Delete the previous word, maintaining the cursor at the start of the * current word. */ void linenoiseEditDeletePrevWord(struct linenoiseState *l) { size_t old_pos = l->pos;