diff options
author | James McCoy <jamessan@jamessan.com> | 2017-09-26 15:06:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-26 15:06:08 -0400 |
commit | b3905c44d1ab42bddb7fb6f782051c5291804b7f (patch) | |
tree | c5c702d3979a8d48e87f05ae1b51f8ba94a099a4 /src/nvim/option.c | |
parent | 126b2ca077718a02c086039c8f98ef267cf9eb3e (diff) | |
parent | 2b53a565b991fc329ab7af683ec50e9cfcac557f (diff) | |
download | rneovim-b3905c44d1ab42bddb7fb6f782051c5291804b7f.tar.gz rneovim-b3905c44d1ab42bddb7fb6f782051c5291804b7f.tar.bz2 rneovim-b3905c44d1ab42bddb7fb6f782051c5291804b7f.zip |
Merge pull request #7311 from ckelsel/vim-8.0.0333
vim-patch:8.0.0333
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 74250e83e6..13aadb71bb 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -2997,9 +2997,10 @@ did_set_string_option ( if (s[-1] == 'k' || s[-1] == 's') { /* skip optional filename after 'k' and 's' */ while (*s && *s != ',' && *s != ' ') { - if (*s == '\\') - ++s; - ++s; + if (*s == '\\' && s[1] != NUL) { + s++; + } + s++; } } else { if (errbuf != NULL) { |