nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0c0afd4799721e0dc9311383015397a92adec93f
parent cb5aefa59ab636659e8d92166d651d90ccb0d5b6
Author: Terminator X <engineerarun@gmail.com>
Date:   Fri, 22 Oct 2021 22:04:49 +0530

Merge pull request #1207 from luukvbaal/master

Clear selection for send_to_explorer
Diffstat:
Msrc/nnn.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -5836,6 +5836,10 @@ static void send_to_explorer(int *presel) int fd = open(fifopath, O_WRONLY|O_NONBLOCK|O_CLOEXEC, 0600); if ((fd == -1) || (seltofile(fd, NULL) != (size_t)(selbufpos))) printwarn(presel); + else { + resetselind(); + clearselection(); + } if (fd > 1) close(fd); } else @@ -6836,7 +6840,7 @@ nochange: #ifndef NOFIFO if (g_state.fifomode && (sel == SEL_OPEN)) { send_to_explorer(&presel); /* Write selection to explorer fifo */ - goto nochange; + break; } #endif /* If opened as vim plugin and Enter/^M pressed, pick */