comparison src/buffer.c @ 29507:d3058719eff5 v9.0.0095

patch 9.0.0095: conditions are always true Commit: https://github.com/vim/vim/commit/122dea70073d140aa89212d344c3f62bd3b5b3fa Author: zeertzjq <zeertzjq@outlook.com> Date: Wed Jul 27 15:48:45 2022 +0100 patch 9.0.0095: conditions are always true Problem: Conditions are always true. Solution: Remove useless conditions. (closes https://github.com/vim/vim/issues/10802)
author Bram Moolenaar <Bram@vim.org>
date Wed, 27 Jul 2022 17:00:04 +0200
parents e1e99ef28040
children c8c128b0eddc
comparison
equal deleted inserted replaced
29506:f25ba0f8e43b 29507:d3058719eff5
4295 #endif 4295 #endif
4296 p = out; 4296 p = out;
4297 curitem = 0; 4297 curitem = 0;
4298 prevchar_isflag = TRUE; 4298 prevchar_isflag = TRUE;
4299 prevchar_isitem = FALSE; 4299 prevchar_isitem = FALSE;
4300 for (s = usefmt; *s; ) 4300 for (s = usefmt; *s != NUL; )
4301 { 4301 {
4302 if (curitem == (int)stl_items_len) 4302 if (curitem == (int)stl_items_len)
4303 { 4303 {
4304 size_t new_len = stl_items_len * 3 / 2; 4304 size_t new_len = stl_items_len * 3 / 2;
4305 stl_item_T *new_items; 4305 stl_item_T *new_items;
4325 break; 4325 break;
4326 stl_tabtab = new_hlrec; 4326 stl_tabtab = new_hlrec;
4327 stl_items_len = new_len; 4327 stl_items_len = new_len;
4328 } 4328 }
4329 4329
4330 if (*s != NUL && *s != '%') 4330 if (*s != '%')
4331 prevchar_isflag = prevchar_isitem = FALSE; 4331 prevchar_isflag = prevchar_isitem = FALSE;
4332 4332
4333 /* 4333 /*
4334 * Handle up to the next '%' or the end. 4334 * Handle up to the next '%' or the end.
4335 */ 4335 */