Skip to content

Commit 697ae15

Browse files
authored
Merge pull request mhinz#349 from jamessan/aggressive-skip
When b:sy is present, only disable Sy if the file disappears
2 parents c3d450e + 5fec40a commit 697ae15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/sy.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function! sy#start(...) abort
4242
return
4343
else
4444
let path = s:get_path(bufnr)
45-
if s:skip(bufnr, path)
45+
if !filereadable(path)
4646
call sy#stop()
4747
return
4848
elseif empty(sy.vcs)

0 commit comments

Comments
 (0)