]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #1041
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 2 Jun 2021 21:45:09 +0000 (03:15 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 2 Jun 2021 21:45:09 +0000 (03:15 +0530)
src/nnn.c

index ebd2985a8c35ec0a256d203eccc0dd84a850169f..6e5b280d0161bc7208f4fd7869f8b16256881338 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -7219,7 +7219,7 @@ nochange:
                        if (r == 's') {
                                tmp = xreadline(NULL, messages[MSG_SSN_NAME]);
                                if (tmp && *tmp)
-                                       save_session(FALSE, &presel);
+                                       save_session(tmp, &presel);
                        } else if (r == 'l' || r == 'r') {
                                if (load_session(NULL, &path, &lastdir, &lastname, r == 'r')) {
                                        setdirwatch();