Skip to content

Commit

Permalink
Toggle type-to-nav (^N) like global switch
Browse files Browse the repository at this point in the history
This commit bring the current type-to-nav mode state to next context while changing to the next context, making toggling the type-to-nav (^N) like a global switch, instead of the original behavior which store each type-to-nav mode state per context.
  • Loading branch information
amalgame21 authored Sep 22, 2024
1 parent 07a972a commit 78542cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -4330,6 +4330,7 @@ static void savecurctx(char *path, char *curname, int nextctx)
{
settings tmpcfg = cfg;
context *ctxr = &g_ctx[nextctx];
uint_t r = cfg.filtermode;

/* Save current context */
if (curname)
Expand Down Expand Up @@ -4358,6 +4359,7 @@ static void savecurctx(char *path, char *curname, int nextctx)

tmpcfg.curctx = nextctx;
setcfg(tmpcfg);
cfg.filtermode = r;
}

#ifndef NOSSN
Expand Down

0 comments on commit 78542cb

Please sign in to comment.