summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard R. Link <brlink@debian.org>2009-05-31 20:47:33 +0200
committerBernhard R. Link <brlink@debian.org>2009-05-31 20:47:33 +0200
commit166021512b2e39344ff4562323d15a1e2fdea153 (patch)
treec8c966414e4da6268a06d2960387a38625831154
parent3caa93e319499e77f63e25b2ef4a15c276815ca8 (diff)
downloadratpoison-winliststyle-row_works.zip
only add command to general history if it was entered interactivelywinliststyle-row_works
-rw-r--r--src/actions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/actions.c b/src/actions.c
index 0f093a6..bb129ae 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -1705,7 +1705,7 @@ read_shellcmd (struct argspec *spec, struct sbuf *s, struct cmdarg **arg, const
cmdret *ret;
ret = read_string (spec, s, hist_SHELLCMD, exec_completions, arg);
- if (command_name && !ret) {
+ if (command_name && !s && !ret) {
/* store for command history */
char *s = xmalloc (strlen(command_name) + strlen((*arg)->string) + 2);
sprintf (s, "%s %s", command_name, (*arg)->string);