Skip to content

Commit eb55234

Browse files
committed
Backup original shell, use cmd.exe, and restore original shell (for windows).
1 parent f7a7851 commit eb55234

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugin/mdip.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ function! mdip#MarkdownClipboardImage()
237237
else
238238
" let relpath = s:SaveNewFile(g:mdip_imgdir, tmpfile)
239239
let extension = split(tmpfile, '\.')[-1]
240-
let sep = has('win32') ? '\' : '/'
241-
let relpath = g:mdip_imgdir_intext . sep . g:mdip_tmpname . '.' . extension
240+
let relpath = g:mdip_imgdir_intext . '/' . g:mdip_tmpname . '.' . extension
242241
if call(get(g:, 'PasteImageFunction'), [relpath])
243242
return
244243
endif

0 commit comments

Comments
 (0)