diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2024-11-05 21:36:54 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2024-11-05 21:36:54 +0530 |
commit | ab375de72540a04c34f901d81720d565016fb2e1 (patch) | |
tree | 4dd447c80ab561e25d6a48a29b0d5b4cd7355f81 | |
parent | f762b3dc0c40d854e7e1a7449155816bc19bed17 (diff) |
Suffix the current context with * in help
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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))); |