Skip to content

Commit f887b44

Browse files
author
Phan Thanh Cong
committed
make unsaved buffers as unique filename
1 parent b71551e commit f887b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def get_pfile(view):
9494
if not is_js_file(view): return None
9595
fname = view.file_name()
9696
if fname is None:
97-
fname = os.path.join(os.path.dirname(__file__), get_setting("tern_default_project_dir", "default_project_dir"), "tmp")
97+
fname = os.path.join(os.path.dirname(__file__), get_setting("tern_default_project_dir", "default_project_dir"), str(time.time()))
9898
if fname in files:
9999
pfile = files[fname]
100100
if pfile.project.disabled: return None

0 commit comments

Comments
 (0)