summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-21 05:47:18 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-21 05:47:28 (GMT)
commit59ba28e7607d7d2d5d2f7a59f026d4edfa7c1242 (patch)
tree9e7bb671e637396d3c0c8d894c0425b2d61b3f28
parent973dc4056b74b26635f3fe8d9e23835c05cdfd12 (diff)
Omit filename from status bar if not provided
-rw-r--r--nanobox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nanobox.c b/nanobox.c
index 50fcfa8..781ff4b 100644
--- a/nanobox.c
+++ b/nanobox.c
@@ -2519,7 +2519,7 @@ static int format_edit_status(void)
" %ld"
#endif
" ^X=Exit ^O=Save ^W=Search ^K=Cut ^U=Paste M-u=Undo",
- (current_filename != NULL ? current_filename : "No file"),
+ (current_filename != NULL ? current_filename : ""),
#if ENABLE_FEATURE_NANO_READONLY
(readonly_mode ? " [Readonly]" : ""),
#endif