Commit 3c1f169 1 parent 9997519 commit 3c1f169 Copy full SHA for 3c1f169
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,19 @@ function! s:get_ctags_path()
40
40
return s: path
41
41
endfunction
42
42
43
+ function ! s: get_ctags_lock_path ()
44
+ let s: path = s: get_ctags_path ()
45
+ if len (s: path ) > 0
46
+ let s: path = s: path .' .lock'
47
+ endif
48
+ return s: path
49
+ endfunction
50
+
43
51
function ! s: get_ctags_cmd ()
44
52
let s: ctags_cmd = ' '
45
53
46
54
let s: tags_name = s: get_ctags_path ()
47
- let s: tags_lock_name = s: tags_name . ' .lock '
55
+ let s: tags_lock_name = s: get_ctags_lock_path ()
48
56
if len (s: tags_name ) > 0 && glob (s: tags_lock_name ) == ' '
49
57
let s: ctags_cmd = ' touch ' .s: tags_lock_name .' && '
50
58
\. ' ctags ' .g: auto_ctags_tags_args .' -f ' .s: tags_name .' && '
@@ -57,7 +65,7 @@ endfunction
57
65
function ! s: ctags (recreate)
58
66
if a: recreate > 0
59
67
silent ! execute ' !rm ' .s: get_ctags_path ().' 2>/dev/null'
60
- silent ! execute ' !rm ' .s: get_ctags_path ().' .lock 2>/dev/null'
68
+ silent ! execute ' !rm ' .s: get_ctags_lock_path ().' 2>/dev/null'
61
69
endif
62
70
63
71
let s: cmd = s: get_ctags_cmd ()
You can’t perform that action at this time.
0 commit comments