From: Sergey Matveev Date: Fri, 22 Jul 2022 19:27:19 +0000 (+0300) Subject: Proper filename in :Fmt's quickfix X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6934f67f6969714f6dc1f03adf74cd335360d12b;p=dotfiles.git Proper filename in :Fmt's quickfix --- diff --git a/vim/.vim/autoload/fmt.vim b/vim/.vim/autoload/fmt.vim index 0ba912b..3c24a5d 100644 --- a/vim/.vim/autoload/fmt.vim +++ b/vim/.vim/autoload/fmt.vim @@ -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