Skip to content

Commit

Permalink
linenoise.hpp: Solve typos
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Feb 17, 2017
1 parent bfa0bf4 commit 5cb90f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DroneShell/include/linenoise.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@ inline void refreshMultiLine(struct linenoiseState *l) {
int rows = (pcolwid+colpos+l->cols-1)/l->cols; /* rows used by current buf. */
int rpos = (pcolwid+l->oldcolpos+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 = (int)l->maxrows;
int fd = l->ofd, j;
std::string ab;
Expand Down Expand Up @@ -1916,7 +1916,7 @@ inline void refreshMultiLine(struct linenoiseState *l) {
/* Move cursor to right position. */
rpos2 = (pcolwid+colpos2+l->cols)/l->cols; /* current cursor relative row. */

/* Go up till we reach the expected positon. */
/* Go up till we reach the expected position. */
if (rows-rpos2 > 0) {
snprintf(seq,64,"\x1b[%dA", rows-rpos2);
ab += seq;
Expand Down

0 comments on commit 5cb90f2

Please sign in to comment.