]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/autoload/fmt.vim
Proper filename in :Fmt's quickfix
[dotfiles.git] / vim / .vim / autoload / fmt.vim
index 0ba912b5efbd56580ba58d92d4b861aefe087b98..3c24a5dce14fee5848aaefdc793fd3def4f1f7f0 100644 (file)
@@ -9,6 +9,9 @@ export def Do()
         },
         exit_cb: (job, status) => {
             if status != 0
+                for i in range(len(lines))
+                    lines[i] = substitute(lines[i], "^[^:]\\+:", @% .. ":", "")
+                endfor
                 cgetexpr lines
                 copen
                 return