From 983d689a05dae070c587544904fe42205bc4ded3 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 17 Aug 2021 15:06:09 +0530 Subject: [PATCH] Disable auto-marking --- src/nnn.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index b4caed02..9ca979bb 100644 --- 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);