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
1 changed files with 0 additions and 8 deletions

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);
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);