Created
March 16, 2013 04:47
-
-
Save saitoha/5175048 to your computer and use it in GitHub Desktop.
Fix for Patch #859 (for TERM=ansi environment)
This file contains hidden or 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
| diff -cr vim.2e5e2e82a737/src/term.c vim/src/term.c | |
| *** vim.2e5e2e82a737/src/term.c 2013-03-16 13:44:58.000000000 +0900 | |
| --- vim/src/term.c 2013-03-16 13:44:58.000000000 +0900 | |
| *************** | |
| *** 4098,4104 **** | |
| #ifdef FEAT_TERMRESPONSE | |
| if (key_name[0] == NUL | |
| /* URXVT mouse uses <ESC>[#;#;#M, but we are matching <ESC>[ */ | |
| ! || key_name[0] == KS_URXVT_MOUSE) | |
| { | |
| /* Check for some responses from terminal start with "<Esc>[" or | |
| * CSI. | |
| --- 4098,4108 ---- | |
| #ifdef FEAT_TERMRESPONSE | |
| if (key_name[0] == NUL | |
| /* URXVT mouse uses <ESC>[#;#;#M, but we are matching <ESC>[ */ | |
| ! || key_name[0] == KS_URXVT_MOUSE | |
| ! #ifdef FEAT_MBYTE | |
| ! || u7_status == U7_SENT | |
| ! #endif | |
| ! ) | |
| { | |
| /* Check for some responses from terminal start with "<Esc>[" or | |
| * CSI. | |
| *************** | |
| *** 4129,4135 **** | |
| #ifdef FEAT_MBYTE | |
| /* eat it when it has 2 arguments and ends in 'R' */ | |
| ! if (u7_status == U7_SENT && j == 1 && tp[i] == 'R') | |
| { | |
| char *p = NULL; | |
| --- 4133,4139 ---- | |
| #ifdef FEAT_MBYTE | |
| /* eat it when it has 2 arguments and ends in 'R' */ | |
| ! if (j == 1 && tp[i] == 'R') | |
| { | |
| char *p = NULL; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment