mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix #523: create NNN_PIPE early
This commit is contained in:
parent
7cc46510e3
commit
e92b523976
|
@ -4179,14 +4179,14 @@ static bool run_selected_plugin(char **path, const char *file, char *runfile, ch
|
||||||
int fd;
|
int fd;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
if (*file == '_')
|
|
||||||
return run_cmd_as_plugin(*path, file, runfile);
|
|
||||||
|
|
||||||
if (!(g_states & STATE_PLUGIN_INIT)) {
|
if (!(g_states & STATE_PLUGIN_INIT)) {
|
||||||
plctrl_init();
|
plctrl_init();
|
||||||
g_states |= STATE_PLUGIN_INIT;
|
g_states |= STATE_PLUGIN_INIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (*file == '_')
|
||||||
|
return run_cmd_as_plugin(*path, file, runfile);
|
||||||
|
|
||||||
fd = open(g_pipepath, O_RDONLY | O_NONBLOCK);
|
fd = open(g_pipepath, O_RDONLY | O_NONBLOCK);
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue