Skip to content

Commit

Permalink
Backup original shell, use cmd.exe, and restore original shell (for w…
Browse files Browse the repository at this point in the history
…indows).
  • Loading branch information
ysl2 committed Jan 16, 2023
1 parent f7a7851 commit eb55234
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/mdip.vim
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ function! mdip#MarkdownClipboardImage()
else
" let relpath = s:SaveNewFile(g:mdip_imgdir, tmpfile)
let extension = split(tmpfile, '\.')[-1]
let sep = has('win32') ? '\' : '/'
let relpath = g:mdip_imgdir_intext . sep . g:mdip_tmpname . '.' . extension
let relpath = g:mdip_imgdir_intext . '/' . g:mdip_tmpname . '.' . extension
if call(get(g:, 'PasteImageFunction'), [relpath])
return
endif
Expand Down

0 comments on commit eb55234

Please sign in to comment.