Skip to content

Commit fa38366

Browse files
committed
Use doautocmd QuickFixCmd{Pre,Post} for :Vedit commands
1 parent 9616eec commit fa38366

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/scriptease.vim

+2
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,10 @@ function! scriptease#open_command(count,cmd,file,lcd) abort
664664
elseif a:cmd !~# '^edit'
665665
exe a:cmd
666666
endif
667+
exe 'silent doautocmd <nomodeline> QuickFixCmdPre V' . a:cmd
667668
call setloclist(window, map(found,
668669
\ '{"filename": v:val, "text": fnamemodify(v:val, ":~"), "valid": 1}'))
670+
exe 'silent doautocmd <nomodeline> QuickFixCmdPost V' . a:cmd
669671
return precmd . 'll'.matchstr(a:cmd, '!$').' '.a:count . postcmd
670672
endif
671673
endfunction

0 commit comments

Comments
 (0)