Redraw after spawned command terminates - noice - small file browser (mirror / … | |
git clone git://git.codemadness.org/noice | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 3e64b1b92e637d2b7ed80eb93475fffdc2ea3537 | |
parent 7e8495803964d3acc920cc79a03089db78278290 | |
Author: sin <[email protected]> | |
Date: Sat, 19 Jan 2019 18:12:31 +0000 | |
Redraw after spawned command terminates | |
Diffstat: | |
M noice.c | 10 ++++++++-- | |
1 file changed, 8 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/noice.c b/noice.c | |
@@ -838,17 +838,23 @@ nochange: | |
mkpath(path, dents[cur].name, oldpath, sizeof(… | |
goto begin; | |
case SEL_RUN: | |
+ /* Save current */ | |
+ if (ndents > 0) | |
+ mkpath(path, dents[cur].name, oldpath, sizeof(… | |
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(… | |
run = xgetenv(env, run); | |
exitcurses(); | |
spawn(run, dents[cur].name, path); | |
initcurses(); | |
- break; | |
+ goto begin; | |
} | |
/* Screensaver */ | |
if (idletimeout != 0 && idle == idletimeout) { |