|
|
@ -143,7 +143,6 @@ drawwin(void) {
|
|
|
|
size_t asterlen = strlen(asterisk);
|
|
|
|
size_t asterlen = strlen(asterisk);
|
|
|
|
size_t pdesclen;
|
|
|
|
size_t pdesclen;
|
|
|
|
int leftinput;
|
|
|
|
int leftinput;
|
|
|
|
char* desc;
|
|
|
|
|
|
|
|
char* censort = ecalloc(1, asterlen * sizeof(text));
|
|
|
|
char* censort = ecalloc(1, asterlen * sizeof(text));
|
|
|
|
|
|
|
|
|
|
|
|
unsigned int censortl = minpwlen * TEXTW(asterisk) / strlen(asterisk);
|
|
|
|
unsigned int censortl = minpwlen * TEXTW(asterisk) / strlen(asterisk);
|
|
|
@ -176,16 +175,16 @@ drawwin(void) {
|
|
|
|
pbw = MAX(pbw, pdescw);
|
|
|
|
pbw = MAX(pbw, pdescw);
|
|
|
|
pbw = MIN(pbw, pb);
|
|
|
|
pbw = MIN(pbw, pb);
|
|
|
|
pb = mw - pbw;
|
|
|
|
pb = mw - pbw;
|
|
|
|
desc = pinentry->description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < pdesclen; i++) {
|
|
|
|
for (i = 0; i < pdesclen; i++) {
|
|
|
|
if (desc[i] == '\n') {
|
|
|
|
if (pinentry->description[i] == '\n') {
|
|
|
|
desc[i] = ' ';
|
|
|
|
pinentry->description[i] = ' ';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
drw_setscheme(drw, scheme[SchemeDesc]);
|
|
|
|
drw_setscheme(drw, scheme[SchemeDesc]);
|
|
|
|
drw_text(drw, pb, 0, pbw, bh, lrpad / 2, desc, 0);
|
|
|
|
drw_text(drw, pb, 0, pbw, bh, lrpad / 2, pinentry->description,
|
|
|
|
|
|
|
|
0);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
pbw = 0;
|
|
|
|
pbw = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|