Skip to content

Commit

Permalink
Disable e on explorer mode
Browse files Browse the repository at this point in the history
  • Loading branch information
luukvbaal committed Jun 8, 2022
1 parent 88306e2 commit da9b190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -7338,7 +7338,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 */
Expand Down

0 comments on commit da9b190

Please sign in to comment.