summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/actions.c b/src/actions.c
index 221c1cd..66ea755 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -1681,7 +1681,6 @@ read_shellcmd (struct argspec *spec, struct sbuf *s, struct cmdarg **arg, const
cmdret *ret;
ret = read_string (spec, s, hist_SHELLCMD, exec_completions, arg);
-#ifdef HAVE_HISTORY
if (command_name && !ret) {
/* store for command history */
char *s = xmalloc (strlen(command_name) + strlen((*arg)->string) + 2);
@@ -1689,7 +1688,6 @@ read_shellcmd (struct argspec *spec, struct sbuf *s, struct cmdarg **arg, const
history_add (hist_COMMAND, s);
free(s);
}
-#endif
return ret;
}