]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/pack/stargrave/start/chnglstnav/autoload/chnglstnav.vim
Move to vim9script
[dotfiles.git] / vim / .vim / pack / stargrave / start / chnglstnav / autoload / chnglstnav.vim
index 9bdf8402dc1217aca542086d33e1b527227adc40..cfd5ab6c31fdda331b1cd087078d29547d29d177 100644 (file)
@@ -1,4 +1,6 @@
-function! chnglstnav#do(...)
-    if a:0 == 0 | return | endif
-    execute "normal " . a:1 . (a:1 > 0 ? "g;" : "g,")
-endfunction
+vim9script
+
+export def Do(...args: list<number>)
+    if len(args) == 0 | return | endif
+    execute "normal " .. args[0] .. (args[0] > 0 ? "g;" : "g,")
+enddef