render: urls: uppercase the activation key sequence

This commit is contained in:
Daniel Eklöf 2021-02-06 23:03:05 +01:00
parent 29c86612df
commit 19e23254fb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1,6 +1,7 @@
#include "render.h"
#include <string.h>
#include <wctype.h>
#include <unistd.h>
#include <sys/ioctl.h>
@ -2591,6 +2592,9 @@ render_urls(struct terminal *term)
}
}
for (size_t i = 0; i < wcslen(key); i++)
label[i] = towupper(label[i]);
size_t len = wcslen(label);
int cols = wcswidth(label, len);