mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 19:48:32 +00:00
@@ -4855,17 +4855,10 @@ static int failure_chance(nfa_state_T *state, int depth)
|
||||
*/
|
||||
static int skip_to_start(int c, colnr_T *colp)
|
||||
{
|
||||
char_u *s;
|
||||
|
||||
/* Used often, do some work to avoid call overhead. */
|
||||
if (!ireg_ic
|
||||
&& !has_mbyte
|
||||
)
|
||||
s = vim_strbyte(regline + *colp, c);
|
||||
else
|
||||
s = cstrchr(regline + *colp, c);
|
||||
if (s == NULL)
|
||||
const char_u *const s = cstrchr(regline + *colp, c);
|
||||
if (s == NULL) {
|
||||
return FAIL;
|
||||
}
|
||||
*colp = (int)(s - regline);
|
||||
return OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user