summaryrefslogtreecommitdiff
path: root/pinentry-dmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'pinentry-dmenu.c')
-rw-r--r--pinentry-dmenu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c
index fa39b3f..949d2c1 100644
--- a/pinentry-dmenu.c
+++ b/pinentry-dmenu.c
@@ -177,6 +177,13 @@ drawwin(void) {
pbw = MIN(pbw, pb);
pb = mw - pbw;
desc = pinentry->description;
+
+ for (i = 0; i < pdesclen; i++) {
+ if (desc[i] == '\n') {
+ desc[i] = ' ';
+ }
+ }
+
drw_setscheme(drw, scheme[SchemeDesc]);
drw_text(drw, pb, 0, pbw, bh, lrpad / 2, desc, 0);
} else {