nnn

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

commit 983d689a05dae070c587544904fe42205bc4ded3
parent 9d4330e382e5b3542bd5f51690c8bb0bdbff1fd8
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Tue, 17 Aug 2021 15:06:09 +0530

Disable auto-marking

Diffstat:
Msrc/nnn.c | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -4335,10 +4335,6 @@ static void set_smart_ctx(int ctx, char *nextpath, char **path, char **lastname, ctx = (int)(get_free_ctx() + 1); if (ctx == 0 || ctx == cfg.curctx + 1) { /* Same context */ - /* Mark current directory */ - free(mark); - mark = xstrdup(*path); - xstrsncpy(*lastdir, *path, PATH_MAX); xstrsncpy(*path, nextpath, PATH_MAX); } else { /* New context */ @@ -6727,10 +6723,6 @@ nochange: goto nochange; } - /* Mark current directory */ - free(mark); - mark = xstrdup(path); - cdprep(lastdir, NULL, path, newpath) ? (presel = FILTER) : (watch = TRUE); xstrsncpy(lastname, pent->name, NAME_MAX + 1);