Skip to content

Commit

Permalink
Fix for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Nov 5, 2023
1 parent 8f3bcac commit 17e9c7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/dpp/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function dpp#util#_execute_hook(plugin, hook_name, hook) abort
try
" NOTE: hook may contain \r in Windows
const cmds = a:hook->split('\r\?\n')
\ ->map({ _, val -> val->substitute('\r', '', 'g')})
if !(cmds->empty()) && cmds[0] =~# '^\s*vim9script' && exists(':vim9')
vim9 call execute(cmds[1 : ], '')
else
Expand Down

0 comments on commit 17e9c7f

Please sign in to comment.