summaryrefslogtreecommitdiff
path: root/plugins/gtkui/plcommon.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-15 23:06:48 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-15 23:06:48 +0200
commit454b26668bb7ad50ee6bb375eceddac0de9124d9 (patch)
tree82c2de175b7504dd5f3e14b318a511e529089fd0 /plugins/gtkui/plcommon.c
parent8df3513f9a5837a83c4cf344b43cd4a45e0db74b (diff)
gtkui: multiline metadata fix
Diffstat (limited to 'plugins/gtkui/plcommon.c')
-rw-r--r--plugins/gtkui/plcommon.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/gtkui/plcommon.c b/plugins/gtkui/plcommon.c
index 795bb9a3..f2cacd80 100644
--- a/plugins/gtkui/plcommon.c
+++ b/plugins/gtkui/plcommon.c
@@ -280,6 +280,14 @@ void draw_column_data (DdbListview *listview, cairo_t *cr, DdbListviewIter it, D
else if (it) {
char text[1024];
deadbeef->pl_format_title (it, -1, text, sizeof (text), cinf->id, cinf->format);
+ char *lb = strchr (text, '\r');
+ if (lb) {
+ *lb = 0;
+ }
+ lb = strchr (text, '\n');
+ if (lb) {
+ *lb = 0;
+ }
GdkColor *color = NULL;
if (theming) {
if (deadbeef->pl_is_selected (it)) {