diff options
author | sin <sin@2f30.org> | 2019-01-19 18:12:31 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2019-01-19 18:12:51 +0000 |
commit | 3e64b1b92e637d2b7ed80eb93475fffdc2ea3537 (patch) | |
tree | 3a29908e6fac44d393372c8d1d35ec101ad6dd54 /noice.c | |
parent | 7e8495803964d3acc920cc79a03089db78278290 (diff) | |
download | noice-3e64b1b92e637d2b7ed80eb93475fffdc2ea3537.tar.gz |
Redraw after spawned command terminates
Diffstat (limited to 'noice.c')
-rw-r--r-- | noice.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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) { |