]> git.lizzy.rs Git - linenoise.git/commitdiff
Replace magic number 9 with '\t' in linenoisePrompt()
authorDennis Schridde <devurandom@gmx.net>
Fri, 2 Nov 2012 09:48:22 +0000 (10:48 +0100)
committerDennis Schridde <devurandom@gmx.net>
Fri, 2 Nov 2012 09:48:22 +0000 (10:48 +0100)
linenoise.c

index 5d82865daafc14819a1d2ddee9c0972ccd7f73d1..fca3849cf0b17fb1ae086e60db737096d98eb760 100644 (file)
@@ -955,7 +955,7 @@ static int linenoisePrompt(struct current *current) {
         /* Only autocomplete when the callback is set. It returns < 0 when
          * there was an error reading from fd. Otherwise it will return the
          * character that should be handled next. */
-        if (c == 9 && completionCallback != NULL) {
+        if (c == '\t' && completionCallback != NULL) {
             c = completeLine(current);
             /* Return on errors */
             if (c < 0) return current->len;