aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/getchar.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 39227cc199..d0eebf8fea 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -3645,10 +3645,8 @@ int check_abbr(int c, char_u *ptr, int col, int mincol)
if (vim_strbyte(mp->m_keys, K_SPECIAL) != NULL) {
/* might have CSI escaped mp->m_keys */
q = vim_strsave(mp->m_keys);
- if (q != NULL) {
- vim_unescape_csi(q);
- qlen = (int)STRLEN(q);
- }
+ vim_unescape_csi(q);
+ qlen = (int)STRLEN(q);
}
/* find entries with right mode and keys */
match = (mp->m_mode & State)