mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Show session name in help
This commit is contained in:
parent
00fb7b6f6b
commit
1a849f1847
|
@ -5293,7 +5293,12 @@ static void show_help(const char *path)
|
||||||
hex = (*s == '\n');
|
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)
|
for (uchar_t i = 0; i < CTX_MAX; ++i)
|
||||||
if (g_ctx[i].c_cfg.ctxactive)
|
if (g_ctx[i].c_cfg.ctxactive)
|
||||||
fprintf(f, " %u: %s\n", i + 1, g_ctx[i].c_path);
|
fprintf(f, " %u: %s\n", i + 1, g_ctx[i].c_path);
|
||||||
|
|
Loading…
Reference in a new issue