To: vim-dev@vim.org Subject: Patch 5.6.052 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.6.052 Problem: Multi-byte: When an Ex command has a '|' or '"' as a second byte, it terminates the command. Solution: Skip second byte of multi-byte char when checking for '|' and '"'. (Asai Kenichi) Files: src/ex_docmd.c *** ../vim-5.6.51/src/ex_docmd.c Mon Mar 27 21:52:25 2000 --- src/ex_docmd.c Mon Apr 3 09:28:24 2000 *************** *** 3622,3627 **** --- 3622,3631 ---- break; } } + #ifdef MULTI_BYTE + else if (is_dbcs && p[1] && IsLeadByte(*p)) + ++p; /* skip second byte of double-byte char */ + #endif } if (!(eap->argt & NOTRLCOM)) /* remove trailing spaces */ del_trailing_spaces(eap->arg); *** ../vim-5.6.51/src/version.c Mon Apr 3 09:35:21 2000 --- src/version.c Mon Apr 3 09:35:02 2000 *************** *** 420,421 **** --- 420,423 ---- { /* Add new patch number below this line */ + /**/ + 52, /**/ -- Snoring is prohibited unless all bedroom windows are closed and securely locked. [real standing law in Massachusetts, United States of America] /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\ \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/