Skip to contentSkip to conversation

[1.1.3.2] keystroke - option P not working (unicode keyboard)

PATCH Stas Sergeev 1 participant 1 message Aug 4, 2002

lore
Share & tools
lore
#0 lore raw

Hello.

Quoted 2 lines · Per Jessen

attached is a patch for the \P on the keystroke config option not working with the unicode keyboard

It's a very late night here and I have looked neither in the code nor in the problem, but somehow it happened that I don't like your patch (sorry). I'll have a look tomorrow but for now please check if the attached patch fixes your problem.

plugin/translate/unicode_utils.c +1 -1
@@ -97,7 +97,7 @@
 	sign = 1;
 	result = 0;
 
-	if ((base < 2) || (base > 36)) {
+	if (base && ((base < 2) || (base > 36))) {
 		if (endptr) {
 			*endptr = (t_unicode *)ptr;
 		}