summaryrefslogtreecommitdiff
blob: 2f8bab1e7665469fa998d8d0c09af94fe32b6bd4 (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
26
27
28
29
30
31
32
33
34
35
36
37
Index: Makefile
===================================================================
RCS file: /cvsroot/mrbayes/mrbayes/Makefile,v
retrieving revision 3.23
retrieving revision 3.24
diff -U2 -r3.23 -r3.24
--- Makefile	22 Dec 2005 16:13:06 -0000	3.23
+++ Makefile	3 Jan 2006 16:43:13 -0000	3.24
@@ -50,4 +50,5 @@
 ifeq  ($(strip $(USEREADLINE)),yes)
     CFLAGS += -DUSE_READLINE
+#   CFLAGS += -DCOMPLETIONMATCHES
 	LIBS += -lncurses -lreadline 
 endif
Index: bayes.c
===================================================================
RCS file: /cvsroot/mrbayes/mrbayes/bayes.c,v
retrieving revision 3.39
retrieving revision 3.40
diff -U2 -r3.39 -r3.40
--- bayes.c	23 Dec 2005 16:26:28 -0000	3.39
+++ bayes.c	3 Jan 2006 16:43:13 -0000	3.40
@@ -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