~dricottone/vim-markdown-preview

c2158da4ff9cd5e0ab19737ab9d116ee4ea8daef — JamshedVesuna 9 years ago a9971e1
Fixed remove temp file bug
1 files changed, 2 insertions(+), 2 deletions(-)

M plugin/vim-markdown-preview.vim
M plugin/vim-markdown-preview.vim => plugin/vim-markdown-preview.vim +2 -2
@@ 41,7 41,7 @@ function! Vim_Markdown_Preview()
    call system('open -g /tmp/vim-markdown-preview.html')
  endif

  if b:REMOVE_TEMP_FILE
  if b:REMOVE_TEMP_FILE == 1
    sleep 200m
    call system('rm /tmp/vim-markdown-preview.html')
  endif


@@ 84,7 84,7 @@ function! Vim_Markdown_Preview_Local()
    call system('open -g ' . curr_file . '.html')
  endif

  if b:REMOVE_TEMP_FILE
  if b:REMOVE_TEMP_FILE == 1
    sleep 200m
    call system('rm ' . curr_file . '.html')
  endif