aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index dee5662..5587d4b 100644
--- a/nnn.c
+++ b/nnn.c
@@ -411,7 +411,7 @@ spawn(char *file, char *arg1, char *arg2, char *dir, uchar flag)
/* Show a marker (to indicate nnn spawned shell) */
if (flag & SP_MARKER) {
printf("\n +-++-++-+\n | n n n |\n +-++-++-+\n\n");
- printf("Shell Level %s\n", getenv("SHLVL"));
+ printf("Spawned shell level: %d\n", atoi(getenv("SHLVL")) + 1);
}
/* Suppress stdout and stderr */