Commits

ZyX_I  committed 04b6428

Fix aurum://edit for nonexistent files

  • Participants
  • Parent commits 6e9f897

Comments (0)

Files changed (1)

File autoload/aurum/edit.vim

 endfunction
 function s:F.edit(buf, rw, file)
     if a:rw>=0
-        call s:F.copy(a:buf, a:rw, a:file)
+        if filereadable(a:file)
+            call s:F.copy(a:buf, a:rw, a:file)
+        endif
         if !a:rw
             setlocal buftype=acwrite nomodified modifiable noreadonly
             let s:_r.bufvars[a:buf]={'file': a:file, 'command': 'edit',