summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Prakash Jana <engineerarun@gmail.com>2024-11-05 21:36:54 +0530
committerArun Prakash Jana <engineerarun@gmail.com>2024-11-05 21:36:54 +0530
commitab375de72540a04c34f901d81720d565016fb2e1 (patch)
tree4dd447c80ab561e25d6a48a29b0d5b4cd7355f81
parentf762b3dc0c40d854e7e1a7449155816bc19bed17 (diff)
Suffix the current context with * in help
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index ec26c0df..5973c9d9 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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)));