\zs has to be single quote escaped
authorSergey Matveev <stargrave@stargrave.org>
Thu, 6 Aug 2020 15:24:54 +0000 (18:24 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 6 Aug 2020 15:24:54 +0000 (18:24 +0300)
vim/.vim/plugin/defsplit.vim

index ab422c0f284fa0b2de5c19d5b2201c0ca586fba5..f995c8a072f4499927a01f576b113ab0725f45ce 100644 (file)
@@ -71,7 +71,7 @@ function! s:defsplit(brs_allowable, single_line_comma, ...)
     let [curly, round, squar, outbuf] = [0, 0, 0, ""]
     let ready = [strpart(line, 0, brfirst + 1)]
     let trailing_comma = 1
-    for c in split(line[brfirst + 1 : brlast-1], "\zs")
+    for c in split(line[brfirst + 1 : brlast-1], '\zs')
         if c ==# "*" | let trailing_comma = 0 | endif
         if outbuf ==# "" && c ==# " " | continue | endif
         let outbuf .= c