r1221 - /trunk/packages/vim/patches/term.c_device-attributes.diff
jamessan at users.alioth.debian.org
jamessan at users.alioth.debian.org
Mon Feb 25 18:13:44 UTC 2008
Author: jamessan
Date: Mon Feb 25 18:13:44 2008
New Revision: 1221
URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=1221
Log:
Update patch to stop when encountering an alphabetic character or ~ based on feedback from Bram and Thomas Dickey.
Modified:
trunk/packages/vim/patches/term.c_device-attributes.diff
Modified: trunk/packages/vim/patches/term.c_device-attributes.diff
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/patches/term.c_device-attributes.diff?rev=1221&op=diff
==============================================================================
--- trunk/packages/vim/patches/term.c_device-attributes.diff (original)
+++ trunk/packages/vim/patches/term.c_device-attributes.diff Mon Feb 25 18:13:44 2008
@@ -2,14 +2,13 @@
===================================================================
--- vim/src/term.c.orig
+++ vim/src/term.c
-@@ -4056,9 +4056,7 @@
- {
+@@ -4057,8 +4057,7 @@
j = 0;
extra = 0;
-- for (i = 2 + (tp[0] != CSI);
+ for (i = 2 + (tp[0] != CSI);
- i < len && (VIM_ISDIGIT(tp[i])
- || tp[i] == ';' || tp[i] == '.'); ++i)
-+ for (i = 2 + (tp[0] != CSI); i < len && tp[i] != 'c'; ++i)
++ i < len && !ASCII_ISALPHA(tp[i]) && tp[i] != '~'; ++i)
if (tp[i] == ';' && ++j == 1)
extra = atoi((char *)tp + i + 1);
if (i == len)
More information about the pkg-vim-maintainers
mailing list