Skip to content

Commit

Permalink
Show session name in help
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Oct 2, 2024
1 parent 00fb7b6 commit 1a849f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -5293,7 +5293,12 @@ static void show_help(const char *path)
hex = (*s == '\n');
}

fprintf(f, "\nLOCATIONS\n");
#ifndef NOSSN
if (curssn[0])
fprintf(f, "\nSESSION: %s\n", curssn);
#endif

fprintf(f, "\nCONTEXTS\n");
for (uchar_t i = 0; i < CTX_MAX; ++i)
if (g_ctx[i].c_cfg.ctxactive)
fprintf(f, " %u: %s\n", i + 1, g_ctx[i].c_path);
Expand Down

0 comments on commit 1a849f1

Please sign in to comment.