To: vim-dev@vim.org Subject: Patch 6.1.131 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.131 Problem: X11 GUI: when expanding a CSI byte in the input stream to K_CSI, the CSI byte itself isn't copied. Solution: Copy the CSI byte. Files: src/gui_x11.c *** ../vim61.130/src/gui_x11.c Thu Jun 13 19:43:03 2002 --- src/gui_x11.c Sun Jul 21 20:45:25 2002 *************** *** 780,786 **** { char_u *p = (char_u *)XtMalloc(len + 3); ! mch_memmove(p, string, i); p[i + 1] = KS_EXTRA; p[i + 2] = (int)KE_CSI; mch_memmove(p + i + 3, string + i + 1, len - i); --- 780,786 ---- { char_u *p = (char_u *)XtMalloc(len + 3); ! mch_memmove(p, string, i + 1); p[i + 1] = KS_EXTRA; p[i + 2] = (int)KE_CSI; mch_memmove(p + i + 3, string + i + 1, len - i); *************** *** 789,794 **** --- 789,795 ---- string = p; string_alloced = True; i += 2; + len += 2; } } else *** ../vim61.130/src/version.c Sun Jul 21 20:39:23 2002 --- src/version.c Sun Jul 21 20:45:46 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 131, /**/ -- hundred-and-one symptoms of being an internet addict: 12. You turn off your modem and get this awful empty feeling, like you just pulled the plug on a loved one. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///