Remove empty spaces

pull/9/head
Moritz Luedecke 4 years ago
parent 73fb6de7b8
commit df021cebfd
No known key found for this signature in database
GPG Key ID: 16A7C55D54A18BF9

@ -123,7 +123,7 @@ nextrune(int cursor, int inc) {
for (n = cursor + inc; for (n = cursor + inc;
n + inc >= 0 && (pin[n] & 0xc0) == 0x80; n + inc >= 0 && (pin[n] & 0xc0) == 0x80;
n += inc); n += inc);
return n; return n;
} }
@ -191,7 +191,7 @@ drawwin(void) {
char* pprompt = (repeat) ? pinentry->repeat_passphrase : pinentry->prompt; char* pprompt = (repeat) ? pinentry->repeat_passphrase : pinentry->prompt;
int ppromptw = (pprompt) ? TEXTW(pprompt) : 0; int ppromptw = (pprompt) ? TEXTW(pprompt) : 0;
unsigned int censortl = minpwlen * TEXTW(asterisk) / strlen(asterisk); unsigned int censortl = minpwlen * TEXTW(asterisk) / strlen(asterisk);
unsigned int confirml = TEXTW(" YesNo ") + 3 * lrpad; unsigned int confirml = TEXTW(" YesNo ") + 3 * lrpad;
@ -212,7 +212,7 @@ drawwin(void) {
if (pinentry->description) { if (pinentry->description) {
pb = mw - x; pb = mw - x;
pdesclen = strlen(pinentry->description); pdesclen = strlen(pinentry->description);
if (pb > 0) { if (pb > 0) {
pb -= (winmode == WinPin) ? censortl : confirml; pb -= (winmode == WinPin) ? censortl : confirml;
pbw = MINDESCLEN * pdescw / pdesclen; pbw = MINDESCLEN * pdescw / pdesclen;
@ -312,7 +312,7 @@ setup(void) {
if (XGetWindowAttributes(dpy, pw, &wa)) { if (XGetWindowAttributes(dpy, pw, &wa)) {
for (j = 0; j < n; j++) { for (j = 0; j < n; j++) {
a = INTERSECT(wa.x, wa.y, wa.width, wa.height, info[j]); a = INTERSECT(wa.x, wa.y, wa.width, wa.height, info[j]);
if (a > area) { if (a > area) {
area = a; area = a;
i = j; i = j;
} }
@ -650,7 +650,7 @@ static int
cmdhandler(pinentry_t received_pinentry) { cmdhandler(pinentry_t received_pinentry) {
struct sigaction sa; struct sigaction sa;
XWindowAttributes wa; XWindowAttributes wa;
pinentry = received_pinentry; pinentry = received_pinentry;
if (!setlocale(LC_CTYPE, "") || !XSupportsLocale()) { if (!setlocale(LC_CTYPE, "") || !XSupportsLocale()) {
@ -790,12 +790,12 @@ main(int argc, char *argv[]) {
pinentry_init("pinentry-dmenu"); pinentry_init("pinentry-dmenu");
pinentry_parse_opts(argc, argv); pinentry_parse_opts(argc, argv);
if (pinentry_loop()) { if (pinentry_loop()) {
return 1; return 1;
} }
config_destroy(&cfg); config_destroy(&cfg);
return 0; return 0;
} }

Loading…
Cancel
Save