To: vim_dev@googlegroups.com Subject: Patch 8.0.1478 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1478 Problem: Unnecessary condition for "len" being zero. Solution: Remove the condition. (Dominique Pelle) Files: src/regexp_nfa.c *** ../vim-8.0.1477/src/regexp_nfa.c 2018-02-04 18:22:41.691668765 +0100 --- src/regexp_nfa.c 2018-02-08 22:42:58.492338708 +0100 *************** *** 6183,6189 **** { /* If \Z was present, then ignore composing characters. * When ignoring the base character this always matches. */ ! if (len == 0 && sta->c != curc) result = FAIL; else result = OK; --- 6183,6189 ---- { /* If \Z was present, then ignore composing characters. * When ignoring the base character this always matches. */ ! if (sta->c != curc) result = FAIL; else result = OK; *** ../vim-8.0.1477/src/version.c 2018-02-08 22:33:27.840606629 +0100 --- src/version.c 2018-02-08 22:43:50.235948778 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1478, /**/ -- [clop clop] GUARD #1: Halt! Who goes there? ARTHUR: It is I, Arthur, son of Uther Pendragon, from the castle of Camelot. King of the Britons, defeator of the Saxons, sovereign of all England! GUARD #1: Pull the other one! The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///