mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
Refactor: Remove occurences of mb_char2bytes
This commit is contained in:
@@ -1376,11 +1376,11 @@ int searchc(cmdarg_T *cap, int t_cmd)
|
||||
*lastc = c;
|
||||
set_csearch_direction(dir);
|
||||
set_csearch_until(t_cmd);
|
||||
lastc_bytelen = (*mb_char2bytes)(c, lastc_bytes);
|
||||
lastc_bytelen = utf_char2bytes(c, lastc_bytes);
|
||||
if (cap->ncharC1 != 0) {
|
||||
lastc_bytelen += (*mb_char2bytes)(cap->ncharC1, lastc_bytes + lastc_bytelen);
|
||||
lastc_bytelen += utf_char2bytes(cap->ncharC1, lastc_bytes + lastc_bytelen);
|
||||
if (cap->ncharC2 != 0)
|
||||
lastc_bytelen += (*mb_char2bytes)(cap->ncharC2, lastc_bytes + lastc_bytelen);
|
||||
lastc_bytelen += utf_char2bytes(cap->ncharC2, lastc_bytes + lastc_bytelen);
|
||||
}
|
||||
}
|
||||
} else { // repeat previous search
|
||||
|
Reference in New Issue
Block a user