Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion plugin/symlink.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ function! s:resolve_path(path) abort
execute 'file' escaped
" Refresh buffer to avoid the confirmation "Overwriting existing file...?"
" on the first attempt to :write the resolved buffer.
edit
try
edit
catch /^Vim\%((\a\+)\)\=:E994/
" if has('patch-8.1.1714') && !empty(&previewpopup), then
" ignore E994: Not allowed in a popup window
endtry
endfunction

augroup resolve_symlink
Expand Down