mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Code refactor
This commit is contained in:
parent
a32b3eac14
commit
735b3d6cde
1 changed files with 5 additions and 9 deletions
14
src/nnn.c
14
src/nnn.c
|
@ -5400,21 +5400,17 @@ nochange:
|
||||||
case SEL_SESSIONS:
|
case SEL_SESSIONS:
|
||||||
r = get_input(messages[MSG_SSN_OPTS]);
|
r = get_input(messages[MSG_SSN_OPTS]);
|
||||||
|
|
||||||
if (r == 's') {
|
if (r == 's')
|
||||||
save_session(FALSE, &presel);
|
save_session(FALSE, &presel);
|
||||||
goto nochange;
|
else if (r == 'l' || r == 'r') {
|
||||||
}
|
|
||||||
|
|
||||||
if (r == 'l' || r == 'r') {
|
|
||||||
if (load_session(NULL, &path, &lastdir, &lastname, r == 'r')) {
|
if (load_session(NULL, &path, &lastdir, &lastname, r == 'r')) {
|
||||||
setdirwatch();
|
setdirwatch();
|
||||||
goto begin;
|
goto begin;
|
||||||
}
|
}
|
||||||
|
|
||||||
presel = MSGWAIT;
|
|
||||||
goto nochange;
|
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
|
clearprompt();
|
||||||
|
goto nochange;
|
||||||
case SEL_QUITCTX: // fallthrough
|
case SEL_QUITCTX: // fallthrough
|
||||||
case SEL_QUITCD: // fallthrough
|
case SEL_QUITCD: // fallthrough
|
||||||
case SEL_QUIT:
|
case SEL_QUIT:
|
||||||
|
|
Loading…
Add table
Reference in a new issue