nnn

mirror of https://github.com/jarun/nnn
Log | Files | Refs | README | LICENSE

commit a1ab16dc1398dc9081371e7fc714aa61fb053213
parent ecf6d9a8d3101d984e6231bc51543135485ced25
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat,  6 Jun 2026 16:37:02 +0530

Disable refresh after running cmd as plugin in floating window

Diffstat:
Msrc/nnn.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -6556,7 +6556,7 @@ static bool run_plugin(char **path, const char *file, char *runfile, char **last } else if (*file == '>') { /* Check if floating window should be used */ flags |= F_WINDOW; ++file; - *action = SEL_REDRAW; + //*action = SEL_REDRAW; } else if (*file == '&') { /* Check if GUI flags are to be used */ flags = F_MULTI | F_NOTRACE | F_NOWAIT; ++file; @@ -9623,9 +9623,7 @@ nochange: if (!r) { cfg.filtermode ? presel = FILTER : statusbar(path); - - if (action != SEL_REDRAW) - goto nochange; + break; } } else { /* 'Return/Enter' enters the plugin directory */ g_state.runplugin ^= 1;