Code

Try to keep the cursor position when reloading lyrics
[ncmpc.git] / src / title_bar.c
index f45b05f0cff8fcff908eb2a11b89348fdf711ac3..e83156519a4890ef2a10c13248638ecdcba00b04 100644 (file)
@@ -23,6 +23,8 @@
 #include "i18n.h"
 #include "charset.h"
 
+#include "config.h"
+
 #include <mpd/client.h>
 
 #include <glib.h>
@@ -35,7 +37,7 @@ static void
 print_hotkey(WINDOW *w, command_t cmd, const char *label)
 {
        colors_use(w, COLOR_TITLE_BOLD);
-       waddstr(w, get_key_names(cmd, FALSE));
+       waddstr(w, get_key_names(cmd, false));
        colors_use(w, COLOR_TITLE);
        waddch(w, ':');
        waddstr(w, label);
@@ -88,6 +90,9 @@ title_bar_paint(const struct title_bar *p, const char *title,
 #ifdef ENABLE_OUTPUTS_SCREEN
                print_hotkey(w, CMD_SCREEN_OUTPUTS, _("Outputs"));
 #endif
+#ifdef ENABLE_CHAT_SCREEN
+               print_hotkey(w, CMD_SCREEN_CHAT, _("Chat"));
+#endif
 #endif
        }