projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support for readline command history, editing, and completion at the
[mmh]
/
uip
/
whatnowsbr.c
diff --git
a/uip/whatnowsbr.c
b/uip/whatnowsbr.c
index
7b63762
..
6830bfb
100644
(file)
--- a/
uip/whatnowsbr.c
+++ b/
uip/whatnowsbr.c
@@
-249,7
+249,11
@@
WhatNow (int argc, char **argv)
snprintf (prompt, sizeof(prompt), myprompt, invo_name);
for (;;) {
snprintf (prompt, sizeof(prompt), myprompt, invo_name);
for (;;) {
+#ifdef READLINE_SUPPORT
+ if (!(argp = getans_via_readline (prompt, aleqs))) {
+#else /* ! READLINE_SUPPORT */
if (!(argp = getans (prompt, aleqs))) {
if (!(argp = getans (prompt, aleqs))) {
+#endif /* READLINE_SUPPORT */
unlink (LINK);
done (1);
}
unlink (LINK);
done (1);
}