mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
Remove always-true expressions
This commit is contained in:

committed by
Justin M. Keyes

parent
08d2f7b562
commit
9927e99948
@@ -5322,7 +5322,7 @@ static int nfa_regmatch(nfa_regprog_T *prog, nfa_state_T *start, regsubs_T *subm
|
|||||||
if (ireg_icombine && len == 0) {
|
if (ireg_icombine && len == 0) {
|
||||||
/* If \Z was present, then ignore composing characters.
|
/* If \Z was present, then ignore composing characters.
|
||||||
* When ignoring the base character this always matches. */
|
* When ignoring the base character this always matches. */
|
||||||
if (len == 0 && sta->c != curc)
|
if (sta->c != curc)
|
||||||
result = FAIL;
|
result = FAIL;
|
||||||
else
|
else
|
||||||
result = OK;
|
result = OK;
|
||||||
|
@@ -4252,7 +4252,7 @@ search_line:
|
|||||||
* looking for a define). A line starting with "# define"
|
* looking for a define). A line starting with "# define"
|
||||||
* is not considered to be a comment line.
|
* is not considered to be a comment line.
|
||||||
*/
|
*/
|
||||||
if (!define_matched && skip_comments) {
|
if (skip_comments) {
|
||||||
if ((*line != '#' ||
|
if ((*line != '#' ||
|
||||||
STRNCMP(skipwhite(line + 1), "define", 6) != 0)
|
STRNCMP(skipwhite(line + 1), "define", 6) != 0)
|
||||||
&& get_leader_len(line, NULL, FALSE, TRUE))
|
&& get_leader_len(line, NULL, FALSE, TRUE))
|
||||||
|
Reference in New Issue
Block a user