opnsense-ports/editors/jed/files/patch-src_misc.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

17 lines
394 B
C

--- src/misc.c.orig 2009-12-14 00:12:55.000000000 -0200
+++ src/misc.c 2009-12-14 15:12:53.000000000 -0200
@@ -769,12 +769,14 @@
void jed_ungetkey_wchar (SLwchar_Type wc)
{
+#if JED_HAS_UTF8_SUPPORT
SLuchar_Type *b, buf[JED_MAX_MULTIBYTE_SIZE];
if (NULL == (b = jed_wchar_to_multibyte (wc, buf)))
return;
ungetkey_string ((char *)buf, (int)(b-buf));
+#endif
}