summaryrefslogtreecommitdiff
blob: d41986704708f686ba79fcce64861ee1b0bead6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- a/Makefile
+++ b/Makefile
@@ -50,4 +50,5 @@
 ifeq  ($(strip $(USEREADLINE)),yes)
     CFLAGS += -DUSE_READLINE
+#   CFLAGS += -DCOMPLETIONMATCHES
 	LIBS += -lncurses -lreadline 
 endif
--- a/bayes.c
+++ b/bayes.c
@@ -382,9 +382,11 @@
 char **readline_completion(const char *text, int start, int stop) {
 	char **matches = (char **) NULL;
-	
+
+#ifdef COMPLETIONMATCHES	
 	if(start == 0)
-    	matches = rl_completion_matches (text, command_generator);
+    		matches = rl_completion_matches (text, command_generator);
+#endif
 
-  return (matches);	
+	return (matches);	
 }
 #endif