mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
Merge #6460 from ZyX-I/1476-changes
Refactor functions which find character in a string
This commit is contained in:
@@ -3596,8 +3596,8 @@ int check_abbr(int c, char_u *ptr, int col, int mincol)
|
||||
char_u *q = mp->m_keys;
|
||||
int match;
|
||||
|
||||
if (vim_strbyte(mp->m_keys, K_SPECIAL) != NULL) {
|
||||
/* might have CSI escaped mp->m_keys */
|
||||
if (strchr((const char *)mp->m_keys, K_SPECIAL) != NULL) {
|
||||
// Might have CSI escaped mp->m_keys.
|
||||
q = vim_strsave(mp->m_keys);
|
||||
vim_unescape_csi(q);
|
||||
qlen = (int)STRLEN(q);
|
||||
|
Reference in New Issue
Block a user