diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-04 17:34:17 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-04 17:34:17 +0100 | 
| commit | e21aef1e1002581dc653176eb3d7d4f2b06424f8 (patch) | |
| tree | bfce3ac9ee2db2a9627653b340abdb8c6f7e69c0 /runtime/autoload/msgpack.vim | |
| parent | 695703ca97e9330e3dbbeb3153b57b4ca565d045 (diff) | |
| parent | 24b3b938e888bd053aaa1265266a5b0deaa3a0a6 (diff) | |
| download | rneovim-e21aef1e1002581dc653176eb3d7d4f2b06424f8.tar.gz rneovim-e21aef1e1002581dc653176eb3d7d4f2b06424f8.tar.bz2 rneovim-e21aef1e1002581dc653176eb3d7d4f2b06424f8.zip | |
Merge #5874 from ZyX-I/fix-5482
Fix plugin which opens ShaDa files
Diffstat (limited to 'runtime/autoload/msgpack.vim')
| -rw-r--r-- | runtime/autoload/msgpack.vim | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/runtime/autoload/msgpack.vim b/runtime/autoload/msgpack.vim index 2e2697c57f..a10ac32469 100644 --- a/runtime/autoload/msgpack.vim +++ b/runtime/autoload/msgpack.vim @@ -665,11 +665,15 @@ function msgpack#eval(s, special_objs) abort        call add(expr, ']}')        let s = s[1:]      elseif s[0] is# '''' -      let char = matchstr(s, '\m\C^''\zs.\ze''') +      let char = matchstr(s, '\v\C^\''\zs%(\\\d+|.)\ze\''')        if empty(char)          throw 'char-invalid:Invalid integer character literal format: ' . s        endif -      call add(expr, char2nr(char)) +      if char[0] is# '\' +        call add(expr, +char[1:]) +      else +        call add(expr, char2nr(char)) +      endif        let s = s[len(char) + 2:]      else        throw 'unknown:Invalid non-space character: ' . s | 
