Skip to content

Commit

Permalink
Make things faster by avoiding a file extension for the temporary fil…
Browse files Browse the repository at this point in the history
…e name
  • Loading branch information
boechat107 committed Aug 14, 2020
1 parent 99d2c58 commit dfc9de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/storage.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function! storage#read(cmd, path, dict) abort
if (storage#last_string(a:path) !=? '/')
if (!has_key(a:dict, a:path))
let tempfile = tempname() . '.' . storage#current_file_extension()
let tempfile = tempname()
let a:dict[a:path] = tempfile
else
let tempfile = a:dict[a:path]
Expand Down

0 comments on commit dfc9de9

Please sign in to comment.