From 9f76867e4a1acc806123b964b2283d03041859d2 Mon Sep 17 00:00:00 2001 From: Dennis Schridde Date: Fri, 2 Nov 2012 10:48:22 +0100 Subject: [PATCH] Replace magic number 9 with '\t' in linenoisePrompt() --- linenoise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linenoise.c b/linenoise.c index 5d82865..fca3849 100644 --- a/linenoise.c +++ b/linenoise.c @@ -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; -- 2.44.0