]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/pack/stargrave/start/defsplit/autoload/defsplit.vim
v: are not required in vim9script
[dotfiles.git] / vim / .vim / pack / stargrave / start / defsplit / autoload / defsplit.vim
index 74337e8f2c0e3f54371ef7d0b0914e11ee4f6f9d..94ab75639f4290e05c960355dc186a0b88bee5db 100644 (file)
@@ -71,9 +71,9 @@ export def Do(brsAllowable: list<string>, singleLineComma: bool, ...args: list<n
     endwhile
     var [curly, round, squar, outbuf] = [0, 0, 0, ""]
     var ready = [strpart(line, 0, brfirst + 1)]
-    var trailingComma = v:true
+    var trailingComma = true
     for c in split(line[brfirst + 1 : brlast - 1], '\zs')
-        if c ==# "*" | trailingComma = v:false | endif
+        if c ==# "*" | trailingComma = false | endif
         if outbuf ==# "" && c ==# " " | continue | endif
         outbuf ..= c
         if c ==# "," && !curly && !round && !squar
@@ -87,7 +87,7 @@ export def Do(brsAllowable: list<string>, singleLineComma: bool, ...args: list<n
         elseif c ==# "}" | curly -= 1
         endif
     endfor
-    if trailingComma && !(singleLineComma == v:true && len(ready) == 1)
+    if trailingComma && !(singleLineComma == true && len(ready) == 1)
         outbuf = outbuf .. ","
     endif
     ready = add(ready, prfx .. shift .. outbuf)