OSDN Git Service

Correct sanity check for a truncated Kanji character at the end of the changed sequen...
authorEric Branlund <ebranlund@fastmail.com>
Tue, 19 Jan 2021 18:59:06 +0000 (10:59 -0800)
committerEric Branlund <ebranlund@fastmail.com>
Tue, 19 Jan 2021 18:59:06 +0000 (10:59 -0800)
src/main-cocoa.m

index 40068e2..2e1c35c 100644 (file)
@@ -821,7 +821,7 @@ static int isCharNoPartial(const struct TerminalCell *c)
     while (i < icol + n) {
 #ifdef JP
        if (iskanji(*g)) {
-           if (i == n - 1) {
+           if (i == icol + n - 1) {
                /*
                 * The second byte of the character is past the end.  Ignore
                 * the character.