diff options
author | Bernhard R. Link <brlink@debian.org> | 2009-05-31 20:47:33 +0200 |
---|---|---|
committer | Bernhard R. Link <brlink@debian.org> | 2009-05-31 20:47:33 +0200 |
commit | 166021512b2e39344ff4562323d15a1e2fdea153 (patch) | |
tree | c8c966414e4da6268a06d2960387a38625831154 /src | |
parent | 3caa93e319499e77f63e25b2ef4a15c276815ca8 (diff) | |
download | ratpoison-166021512b2e39344ff4562323d15a1e2fdea153.zip |
only add command to general history if it was entered interactivelywinliststyle-row_works
Diffstat (limited to 'src')
-rw-r--r-- | src/actions.c | 2 |
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); |