From f6b14f6505bd8887b37fee4e2269ac9940607993 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 28 May 2021 23:31:20 +0530 Subject: [PATCH] Restore hovered file name on select and run plugin --- src/nnn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 6faca85d..544067f0 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -6432,8 +6432,10 @@ nochange: if (g_state.picked) return EXIT_SUCCESS; - if (runfile[0]) + if (runfile[0]) { + xstrsncpy(lastname, runfile, NAME_MAX + 1); runfile[0] = '\0'; + } clearfilter(); setdirwatch(); goto begin; -- 2.48.1