Skip to content

Commit

Permalink
Fix startup command execution order
Browse files Browse the repository at this point in the history
  • Loading branch information
notomo committed Aug 30, 2024
1 parent d5382af commit f5e0fe9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/vusted
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
: "${VUSTED_ARGS:=--headless --clean}"

"${VUSTED_NVIM}" ${VUSTED_ARGS} \
--cmd "execute 'source ' .. fnamemodify(resolve('$0'), ':h') .. '/vusted_entry.vim'" \
-c "execute 'source ' .. fnamemodify(resolve('$0'), ':h') .. '/vusted_entry.vim'" \
-- "$@"
2 changes: 1 addition & 1 deletion bin/vusted.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ if "%VUSTED_NVIM%"== "" set VUSTED_NVIM=nvim
if "%VUSTED_ARGS%"== "" set VUSTED_ARGS=--headless --clean

%VUSTED_NVIM% %VUSTED_ARGS% ^
--cmd "execute 'source ' .. fnamemodify(resolve('%~dp0'), ':h') .. '/vusted_entry.vim'" ^
-c "execute 'source ' .. fnamemodify(resolve('%~dp0'), ':h') .. '/vusted_entry.vim'" ^
-- %*

0 comments on commit f5e0fe9

Please sign in to comment.