Skip to content

Commit 9847fab

Browse files
committed
Cache failures
Closes #1.
1 parent 9f869e3 commit 9847fab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/classpath.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ function! classpath#detect(...) abort
139139
let match = matchstr(out, pattern)
140140
if !v:shell_error && exists('out') && out !=# ''
141141
let path = base . classpath#to_vim(match)
142-
call writefile([path], cache)
143-
return path
144142
else
145143
echohl WarningMSG
146144
echomsg "Couldn't determine class path."
147145
echohl NONE
148146
echo out
149-
return default
147+
let path = default
150148
endif
149+
call writefile([path], cache)
150+
return path
151151
endif
152152
endfunction
153153

0 commit comments

Comments
 (0)