summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-03-16 14:33:36 +0100
committerBram Moolenaar <Bram@vim.org>2013-03-16 14:33:36 +0100
commite533bbe094c105884696d69e433604fd1641f988 (patch)
tree40b347cbb33408e7c3eb3e759743f6871b657e90
parent2526ef276b97b1a5275fc0039fb45ca7aa7b6fac (diff)
updated for version 7.3.863v7.3.863
Problem: Problem with 'ambiwidth' detection for ANSI terminal. Solution: Work around not recognizing a term response. (Hayaki Saito)
-rw-r--r--src/term.c11
-rw-r--r--src/version.c2
2 files changed, 9 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c
index 480a5c079c..a63dff37d7 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3926,8 +3926,7 @@ check_termcode(max_offset, buf, bufsize, buflen)
* Check at several positions in typebuf.tb_buf[], to catch something like
* "x<Up>" that can be mapped. Stop at max_offset, because characters
* after that cannot be used for mapping, and with @r commands
- * typebuf.tb_buf[]
- * can become very long.
+ * typebuf.tb_buf[] can become very long.
* This is used often, KEEP IT FAST!
*/
for (offset = 0; offset < max_offset; ++offset)
@@ -4098,7 +4097,11 @@ check_termcode(max_offset, buf, bufsize, buflen)
#ifdef FEAT_TERMRESPONSE
if (key_name[0] == NUL
/* URXVT mouse uses <ESC>[#;#;#M, but we are matching <ESC>[ */
- || key_name[0] == KS_URXVT_MOUSE)
+ || 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,7 +4132,7 @@ check_termcode(max_offset, buf, bufsize, buflen)
#ifdef FEAT_MBYTE
/* eat it when it has 2 arguments and ends in 'R' */
- if (u7_status == U7_SENT && j == 1 && tp[i] == 'R')
+ if (j == 1 && tp[i] == 'R')
{
char *p = NULL;
diff --git a/src/version.c b/src/version.c
index 00024e3598..0f1f904152 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 863,
+/**/
862,
/**/
861,