noice

small file browser
git clone git://git.2f30.org/noice.git
Log | Files | Refs | README | LICENSE

commit 3e64b1b92e637d2b7ed80eb93475fffdc2ea3537
parent 7e8495803964d3acc920cc79a03089db78278290
Author: sin <sin@2f30.org>
Date:   Sat, 19 Jan 2019 18:12:31 +0000

Redraw after spawned command terminates

Diffstat:
Mnoice.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(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) {