]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cli: limit spelling suggestions to 5
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Mar 2021 09:38:04 +0000 (10:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Mar 2021 09:40:13 +0000 (10:40 +0100)
There's no need to suggest up to 10 entries for matching keywords,
most of the times 5 are plenty, and will be more readable.

include/haproxy/cli-t.h

index 61c988141b53c4e0ed97bdf95e550e7938112fe2..450781ab5d6929feded00eaa1e62cfe54f58dc5f 100644 (file)
@@ -42,7 +42,7 @@
 #define APPCTX_CLI_ST1_NOLF    (1 << 2)
 
 #define CLI_PREFIX_KW_NB 5
-#define CLI_MAX_MATCHES 10
+#define CLI_MAX_MATCHES 5
 
 /* CLI states */
 enum {