0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.0095: conditions are always true

Problem:    Conditions are always true.
Solution:   Remove useless conditions. (closes #10802)
This commit is contained in:
zeertzjq
2022-07-27 15:48:45 +01:00
committed by Bram Moolenaar
parent 3d6ee8bda0
commit 122dea7007
3 changed files with 7 additions and 4 deletions

View File

@@ -4297,7 +4297,7 @@ build_stl_str_hl(
curitem = 0;
prevchar_isflag = TRUE;
prevchar_isitem = FALSE;
for (s = usefmt; *s; )
for (s = usefmt; *s != NUL; )
{
if (curitem == (int)stl_items_len)
{
@@ -4327,7 +4327,7 @@ build_stl_str_hl(
stl_items_len = new_len;
}
if (*s != NUL && *s != '%')
if (*s != '%')
prevchar_isflag = prevchar_isitem = FALSE;
/*