mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Minor reformat to fix build break
This commit is contained in:
parent
69431e49a9
commit
6d2325e18a
22
src/nnn.c
22
src/nnn.c
|
@ -5328,6 +5328,19 @@ static void handle_screen_move(enum action sel)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void handle_openwith(const char *path, const char *name, char *newpath, char *tmp)
|
||||||
|
{
|
||||||
|
/* Confirm if app is CLI or GUI */
|
||||||
|
int r = get_input(messages[MSG_CLI_MODE]);
|
||||||
|
|
||||||
|
r = (r == 'c' ? F_CLI :
|
||||||
|
(r == 'g' ? F_NOWAIT | F_NOTRACE | F_MULTI : 0));
|
||||||
|
if (r) {
|
||||||
|
mkpath(path, name, newpath);
|
||||||
|
spawn(tmp, newpath, NULL, r);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void copynextname(char *lastname)
|
static void copynextname(char *lastname)
|
||||||
{
|
{
|
||||||
if (cur) {
|
if (cur) {
|
||||||
|
@ -6835,14 +6848,7 @@ nochange:
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
case SEL_OPENWITH:
|
case SEL_OPENWITH:
|
||||||
/* Confirm if app is CLI or GUI */
|
handle_openwith(path, pdents[cur].name, newpath, tmp);
|
||||||
r = get_input(messages[MSG_CLI_MODE]);
|
|
||||||
r = (r == 'c' ? F_CLI :
|
|
||||||
(r == 'g' ? F_NOWAIT | F_NOTRACE | F_MULTI : 0));
|
|
||||||
if (r) {
|
|
||||||
mkpath(path, pdents[cur].name, newpath);
|
|
||||||
spawn(tmp, newpath, NULL, r);
|
|
||||||
}
|
|
||||||
|
|
||||||
cfg.filtermode ? presel = FILTER : statusbar(path);
|
cfg.filtermode ? presel = FILTER : statusbar(path);
|
||||||
copycurname();
|
copycurname();
|
||||||
|
|
Loading…
Reference in a new issue