nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 26f44f0dfcf5e4e9c92aef65d323c4b39418a61c
parent fa0f9ddc93153f2953102ce2787b4040be24c8dc
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Fri, 16 Jul 2021 11:09:20 +0530

Fix selection in /

Diffstat:
Msrc/nnn.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -1752,8 +1752,9 @@ static void rmfromselbuf(size_t len) static int scanselforpath(const char *path, bool getsize) { if (!path[1]) { /* path should always be at least two bytes (including NULL) */ + g_buf[0] = '/'; findselpos = pselbuf; - return TRUE; + return 1; /* Length of '/' is 1 */ } size_t off = xstrsncpy(g_buf, path, PATH_MAX);