From: Arun Prakash Jana Date: Fri, 27 Dec 2019 04:43:48 +0000 (+0530) Subject: Code refactor X-Git-Tag: v2.9~111 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=735b3d6cde45cf4a049f2bc977005adde8617d05;p=nnn.git Code refactor --- diff --git a/src/nnn.c b/src/nnn.c index 9f699436..4c27b4db 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -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: