mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Disable auto-marking
This commit is contained in:
parent
9d4330e382
commit
983d689a05
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue