comparison src/regexp_nfa.c @ 13208:e96663c35bab v8.0.1478

patch 8.0.1478: unnecessary condition commit https://github.com/vim/vim/commit/dff72ba4459f54cac2ce40eea3d92097660c7b9f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 8 22:45:17 2018 +0100 patch 8.0.1478: unnecessary condition Problem: Unnecessary condition for "len" being zero. Solution: Remove the condition. (Dominique Pelle)
author Christian Brabandt <cb@256bit.org>
date Thu, 08 Feb 2018 23:00:05 +0100
parents 9bd4151e5aeb
children ac42c4b11dbc
comparison
equal deleted inserted replaced
13207:469cb6f67dfe 13208:e96663c35bab
6181 } 6181 }
6182 if (rex.reg_icombine && len == 0) 6182 if (rex.reg_icombine && len == 0)
6183 { 6183 {
6184 /* If \Z was present, then ignore composing characters. 6184 /* If \Z was present, then ignore composing characters.
6185 * When ignoring the base character this always matches. */ 6185 * When ignoring the base character this always matches. */
6186 if (len == 0 && sta->c != curc) 6186 if (sta->c != curc)
6187 result = FAIL; 6187 result = FAIL;
6188 else 6188 else
6189 result = OK; 6189 result = OK;
6190 while (sta->c != NFA_END_COMPOSING) 6190 while (sta->c != NFA_END_COMPOSING)
6191 sta = sta->out; 6191 sta = sta->out;