1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/editors/nvi-m17n/files/patch-common-multibyte.c
Steve Wills 2daed13623 editors/nvi-m17n: fix CJK display problem
PR:		220013
Submitted by:	Satoshi TOMIOKA <tomioka.satoshi.ml@gmail.com>
Reported by:	Yasuhito FUTATSUKI <freebsd-bug-report-yf@yf.bsdclub.org>
2018-06-16 22:47:21 +00:00

14 lines
362 B
C

--- ../common/multibyte.c.orig 2017-11-17 21:47:04.305764000 +0900
+++ ../common/multibyte.c 2017-11-17 21:58:19.218532000 +0900
@@ -1454,8 +1454,9 @@
if (maybe == 0)
return ename;
+ if ( (maxfunc!=1) && (try==maybe) ) continue ;
for (i = 0; i < maxfunc; i++) {
- if (maybe == (1 << i))
+ if (maybe & (1 << i))
return dt->name[i];
}
}