aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-06-06 21:31:40 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-06-06 21:31:40 +0530
commitf52367a48168f95545bc15148b58076ce56155f8 (patch)
treefe712ddb1b808014895eb66f57ee77614f479538
parent889500b057d7344a7aaf1bdb90cd9947636b3ade (diff)
downloadnnn-f52367a48168f95545bc15148b58076ce56155f8.tar.gz
Set to the lat selected file
-rw-r--r--nnn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index 7af3c4d..d2740ab 100644
--- a/nnn.c
+++ b/nnn.c
@@ -757,7 +757,8 @@ readln(char *path)
printprompt(ln);
break;
case CONTROL('L'):
- cur = oldcur; // fallthrough
+ if (len == 1)
+ cur = oldcur; // fallthrough
case CONTROL('Q'):
goto end;
default: