diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index d6d1a6c3cf4c4ad64eedb420f06a70975b33c156..11786c1a9e778ee503983645e468a8b63760a4fd 100644 (file)
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
/* ncmpc (Ncurses MPD Client)
- * (c) 2004-2010 The Music Player Daemon Project
+ * (c) 2004-2017 The Music Player Daemon Project
* Project homepage: http://musicpd.org
*
* This program is free software; you can redistribute it and/or modify
}
static void
-lyrics_screen_init(WINDOW *w, int cols, int rows)
+lyrics_screen_init(WINDOW *w, unsigned cols, unsigned rows)
{
screen_text_init(&text, w, cols, rows);
}
static void
-lyrics_resize(int cols, int rows)
+lyrics_resize(unsigned cols, unsigned rows)
{
screen_text_resize(&text, cols, rows);
}
}
if (options.text_editor_ask) {
- char *buf = g_strdup_printf(
- _("Do you really want to start an editor and edit these lyrics [%s/%s]? "),
- YES, NO);
- bool really = screen_get_yesno(buf, false);
- g_free(buf);
+ const char *prompt =
+ _("Do you really want to start an editor and edit these lyrics?");
+ bool really = screen_get_yesno(prompt, false);
if (!really) {
screen_status_message(_("Aborted"));
return;
case CMD_LYRICS_UPDATE:
if (c->song != NULL) {
screen_lyrics_load(c->song);
- screen_text_repaint(&text);
+ screen_text_paint(&text);
}
return true;
case CMD_EDIT: