From 0ef8c346a41be563451eff6bfc2215b9e9427887 Mon Sep 17 00:00:00 2001 From: Luuk van Baal Date: Wed, 8 Jun 2022 20:15:55 +0200 Subject: [PATCH] Disable e on explorer mode https://github.com/luukvbaal/nnn.nvim/pull/57 --- src/nnn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index b2e48c7c4..8b60d525a 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -354,7 +354,7 @@ typedef struct { uint_t dircolor : 1; /* Current status of dir color */ uint_t dirctx : 1; /* Show dirs in context color */ uint_t duinit : 1; /* Initialize disk usage */ - uint_t fifomode : 1; /* FIFO notify mode: 0: preview, 1: explore */ + uint_t fifomode : 1; /* FIFO notify mode: 0: preview, 1: explorer */ uint_t forcequit : 1; /* Do not prompt on quit */ uint_t initfile : 1; /* Positional arg is a file */ uint_t interrupt : 1; /* Program received an interrupt */ @@ -7335,7 +7335,7 @@ static bool browse(char *ipath, const char *session, int pkey) copycurname(); goto nochange; case SEL_EDIT: - if (!g_state.picker) + if (!(g_state.picker || g_state.fifomode)) spawn(editor, newpath, NULL, NULL, F_CLI); continue; default: /* SEL_LOCK */