diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-12-27 10:13:48 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-12-27 10:13:48 +0530 |
commit | 735b3d6cde45cf4a049f2bc977005adde8617d05 (patch) | |
tree | d3110b8b2426ce3a401a8e0605251ab0f6cc7545 /src/nnn.c | |
parent | a32b3eac148f35b4260ebfde898741e1c57a827e (diff) | |
download | nnn-735b3d6cde45cf4a049f2bc977005adde8617d05.tar.gz |
Code refactor
Diffstat (limited to 'src/nnn.c')
-rw-r--r-- | src/nnn.c | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -5400,21 +5400,17 @@ nochange: case SEL_SESSIONS: r = get_input(messages[MSG_SSN_OPTS]); - if (r == 's') { + if (r == 's') save_session(FALSE, &presel); - goto nochange; - } - - if (r == 'l' || r == 'r') { + else if (r == 'l' || r == 'r') { if (load_session(NULL, &path, &lastdir, &lastname, r == 'r')) { setdirwatch(); goto begin; } - - presel = MSGWAIT; - goto nochange; } - break; + + clearprompt(); + goto nochange; case SEL_QUITCTX: // fallthrough case SEL_QUITCD: // fallthrough case SEL_QUIT: |