diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-09-01 16:05:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-09-01 16:05:00 +0200 |
commit | 37a8de17d4dfd3d463960c38a204ce399c8e19d4 (patch) | |
tree | f88214eabbb07e30167198afec63d23284d03a9c /src/eval.c | |
parent | d43f0951bca162d4491d57df9277b5dbc462944f (diff) |
patch 7.4.844v7.4.844
Problem: When '#' is in 'isident' the is# comparator doesn't work.
Solution: Don't use vim_isIDc(). (Yasuhiro Matsumoto)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 3650c34a9b..9a590c7491 100644 --- a/src/eval.c +++ b/src/eval.c @@ -4431,7 +4431,8 @@ eval4(arg, rettv, evaluate) { if (p[2] == 'n' && p[3] == 'o' && p[4] == 't') len = 5; - if (!vim_isIDc(p[len])) + i = p[len]; + if (!isalnum(i) && i != '_') { type = len == 2 ? TYPE_EQUAL : TYPE_NEQUAL; type_is = TRUE; |