To: vim-dev@vim.org Subject: Patch 7.2c.003 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 7.2c.003 Problem: Searching for "foo\%[bar]\+" gives a "Corrupted regexp program" error. (Joachim Hofmann) Solution: Mark the \%[] item as not being simple. Files: src/regexp.c *** ../vim-7.2c.002/src/regexp.c Tue Jun 24 23:26:41 2008 --- src/regexp.c Thu Aug 7 21:58:50 2008 *************** *** 1899,1905 **** br = regnext(br); } } ! *flagp &= ~HASWIDTH; break; } --- 1899,1905 ---- br = regnext(br); } } ! *flagp &= ~(HASWIDTH | SIMPLE); break; } *** ../vim-7.2c.002/src/version.c Fri Aug 8 12:58:19 2008 --- src/version.c Fri Aug 8 13:43:41 2008 *************** *** 678,679 **** --- 678,681 ---- { /* Add new patch number below this line */ + /**/ + 3, /**/ -- BRIDGEKEEPER: What is your favorite colour? LAUNCELOT: Blue. BRIDGEKEEPER: Right. Off you go. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///