From ab375de72540a04c34f901d81720d565016fb2e1 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 5 Nov 2024 21:36:54 +0530 Subject: Suffix the current context with * in help --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); -- cgit v1.2.3