diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-21 22:12:41 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-21 22:12:41 +0000 |
commit | 57657d85c6c3d812e99b5e5d5161c07c66ac7dc7 (patch) | |
tree | 35b6845dc38717148718ac5cf70553b8c2cb96d8 /src/digraph.c | |
parent | fc1421eb53b17aa58b01a9c07ba2007eb4a1aa4f (diff) | |
download | vim-git-57657d85c6c3d812e99b5e5d5161c07c66ac7dc7.tar.gz |
updated for version 7.0e05v7.0e05
Diffstat (limited to 'src/digraph.c')
-rw-r--r-- | src/digraph.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/digraph.c b/src/digraph.c index 892a3ed62..667ff0716 100644 --- a/src/digraph.c +++ b/src/digraph.c @@ -2439,8 +2439,11 @@ ex_loadkeymap(eap) kp->to = vim_strnsave(p, (int)(s - p)); if (kp->from == NULL || kp->to == NULL - || STRLEN(kp->from) + STRLEN(kp->to) >= KMAP_LLEN) + || STRLEN(kp->from) + STRLEN(kp->to) >= KMAP_LLEN + || *kp->from == NUL || *kp->to == NUL) { + if (kp->to != NULL && *kp->to == NUL) + EMSG(_("E791: Empty keymap entry")); vim_free(kp->from); vim_free(kp->to); } |