src/nnn.c | 14 +++++--------- diff --git a/src/nnn.c b/src/nnn.c index 9f699436d5814e6a1649194ccb9a728134b30c1c..4c27b4db9303f16e1ca98599b5467161a7db3b36 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5400,21 +5400,17 @@ goto 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: