aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-04-20 01:34:29 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-04-20 01:34:29 -0400
commitcd10cdd1b4957eeb1240cc013a904f5a1a25e878 (patch)
tree8d307d7775b190128a64c3263ccbf15d4a95ac90 /src/nvim/eval.c
parent5c6592fdab6c0618d218e14438de50afe585f7e0 (diff)
parent02fa6b18d6da55f0738d1cd97d462032c9135cd6 (diff)
downloadrneovim-cd10cdd1b4957eeb1240cc013a904f5a1a25e878.tar.gz
rneovim-cd10cdd1b4957eeb1240cc013a904f5a1a25e878.tar.bz2
rneovim-cd10cdd1b4957eeb1240cc013a904f5a1a25e878.zip
Merge pull request #4589 from gregorias/patch_1113
vim-patch: 7.4.1113
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 598bf2c0dd..e9b1df6367 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -16986,9 +16986,9 @@ static char_u *find_name_end(char_u *arg, char_u **expr_start,
}
} else if (br_nest == 0 && mb_nest == 0 && *p == ':') {
// "s:" is start of "s:var", but "n:" is not and can be used in
- // slice "[n:]". Also "xx:" is not a namespace.
+ // slice "[n:]". Also "xx:" is not a namespace. But {ns}: is. */
len = (int)(p - arg);
- if (len > 1
+ if ((len > 1 && p[-1] != '}')
|| (len == 1 && vim_strchr(namespace_char, *arg) == NULL)) {
break;
}