Skip to content

Commit

Permalink
Suffix the current context with * in help
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Nov 5, 2024
1 parent f762b3d commit ab375de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -5301,7 +5301,7 @@ static void show_help(const char *path)
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);
fprintf(f, " %u%c %s\n", i + 1, (cfg.curctx == i) ? '*' : ' ', g_ctx[i].c_path);

fprintf(f, "\nVOLUME: avail:%s ", coolsize(get_fs_info(path, VFS_AVAIL)));
fprintf(f, "used:%s ", coolsize(get_fs_info(path, VFS_USED)));
Expand Down

0 comments on commit ab375de

Please sign in to comment.