Created
June 17, 2011 01:20
-
-
Save false-git/1030680 to your computer and use it in GitHub Desktop.
emacs23.3でカーソルキーを使うと位置がずれる問題に対応するpatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/coding.c.orig 2011-01-09 02:45:14.000000000 +0900 | |
+++ src/coding.c 2011-06-17 09:45:43.000000000 +0900 | |
@@ -3867,8 +3867,14 @@ | |
else | |
charset = CHARSET_FROM_ID (charset_id_3); | |
ONE_MORE_BYTE (c1); | |
- if (c1 < 0x20 || (c1 >= 0x80 && c1 < 0xA0)) | |
- goto invalid_code; | |
+ if (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS) { | |
+ if (c1 < 0x20 || c1 >= 0x80) | |
+ goto invalid_code; | |
+ } | |
+ else { | |
+ if (c1 < 0xA0) | |
+ goto invalid_code; | |
+ } | |
break; | |
case '0': case '2': case '3': case '4': /* start composition */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment