]> granicus.if.org Git - nethack/commitdiff
Make status hilites show none instead of empty in options
authorPasi Kallinen <paxed@alt.org>
Sat, 7 Nov 2015 09:55:12 +0000 (11:55 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 7 Nov 2015 09:55:12 +0000 (11:55 +0200)
src/options.c

index 06db5c4c45fb597f0404a72d310e327749412a44..140fb02da8a88c2cc09a2f706c26d3e17e7ab417 100644 (file)
@@ -3616,6 +3616,7 @@ doset()
 #ifdef STATUS_HILITES
     any.a_int = -2;
     get_status_hilites(buf2, 60);
+    if (!*buf2) Sprintf(buf2, "%s", "(none)");
     if (!iflags.menu_tab_sep)
         Sprintf(buf, fmtstr_doset_add_menu, any.a_int ? "" : "    ",
                 "status_hilites", buf2);
@@ -3667,7 +3668,7 @@ doset()
             } else if (opt_indx == -4) {
                     (void) special_handling("menucolors", setinitial,
                                             fromfile);
-                } else if (opt_indx == -5) {
+            } else if (opt_indx == -5) {
                     (void) special_handling("msgtype", setinitial, fromfile);
             } else if (opt_indx < boolcount) {
                 /* boolean option */