diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-05-08 13:45:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-08 13:45:14 +0200 |
commit | a9605bb4aff76a934a4c39fbda093ee8fc8a1c71 (patch) | |
tree | 47dbb30254735b7184442eb9ab290659259b9635 /src/nvim/getchar.c | |
parent | 631d55ada04bfeaedabb5bf43092457c5f78b8a5 (diff) | |
parent | 22fb9d8d25f5354bb878b953ba49b439961c8476 (diff) | |
download | rneovim-a9605bb4aff76a934a4c39fbda093ee8fc8a1c71.tar.gz rneovim-a9605bb4aff76a934a4c39fbda093ee8fc8a1c71.tar.bz2 rneovim-a9605bb4aff76a934a4c39fbda093ee8fc8a1c71.zip |
Merge #6460 from ZyX-I/1476-changes
Refactor functions which find character in a string
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 6e21ee96e8..79b95272de 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -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); |