Disable auto-marking

This commit is contained in:
Arun Prakash Jana 2021-08-17 15:06:09 +05:30
parent 9d4330e382
commit 983d689a05
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

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