aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2019-01-19 18:12:31 +0000
committersin <sin@2f30.org>2019-01-19 18:12:51 +0000
commit3e64b1b92e637d2b7ed80eb93475fffdc2ea3537 (patch)
tree3a29908e6fac44d393372c8d1d35ec101ad6dd54 /noice.c
parent7e8495803964d3acc920cc79a03089db78278290 (diff)
downloadnoice-3e64b1b92e637d2b7ed80eb93475fffdc2ea3537.tar.gz
Redraw after spawned command terminates
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/noice.c b/noice.c
index beb3b4f..e974351 100644
--- a/noice.c
+++ b/noice.c
@@ -838,17 +838,23 @@ nochange:
mkpath(path, dents[cur].name, oldpath, sizeof(oldpath));
goto begin;
case SEL_RUN:
+ /* Save current */
+ if (ndents > 0)
+ mkpath(path, dents[cur].name, oldpath, sizeof(oldpath));
run = xgetenv(env, run);
exitcurses();
spawn(run, NULL, path);
initcurses();
- break;
+ goto begin;
case SEL_RUNARG:
+ /* Save current */
+ if (ndents > 0)
+ mkpath(path, dents[cur].name, oldpath, sizeof(oldpath));
run = xgetenv(env, run);
exitcurses();
spawn(run, dents[cur].name, path);
initcurses();
- break;
+ goto begin;
}
/* Screensaver */
if (idletimeout != 0 && idle == idletimeout) {
Un proyecto texto-plano.xyz