Show control key combos with uppercase alpha

Instead of ^r, show ^R, as that one is used everywhere.
This commit is contained in:
Pasi Kallinen
2017-03-13 20:32:43 +02:00
parent f9438f6e53
commit 08fe086124

View File

@@ -3741,7 +3741,7 @@ char *txt; /* sufficiently long buffer */
else if (c == '\n')
Sprintf(txt, "<enter>");
else if (ISCTRL(c))
Sprintf(txt, "^%c", UNCTRL(c));
Sprintf(txt, "^%c", highc(UNCTRL(c)));
else if (ISMETA(c))
Sprintf(txt, "M-%c", UNMETA(c));
else if (c >= 33 && c <= 126)