We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af27e17 commit bf4d372Copy full SHA for bf4d372
src/rt/linenoise/linenoise.c
@@ -395,7 +395,7 @@ static int countColorControlChars(const char* prompt, int plen)
395
expect_inner,
396
expect_trail
397
} state = search_esc;
398
- int len, found = 0;
+ int len = 0, found = 0;
399
char ch;
400
401
/* XXX: Strictly we should be checking utf8 chars rather than
@@ -698,7 +698,7 @@ static int fd_read(struct current *current)
698
return -1;
699
}
700
701
-static int countColorControlChars(char* prompt, int plen)
+static int countColorControlChars(const char* prompt, int plen)
702
{
703
/* For windows we assume that there are no embedded ansi color
704
* control sequences.
0 commit comments