Skip to content

Commit 78a8e59

Browse files
committed
Repaint correctly after hiding (removing) project
1 parent a32a4b0 commit 78a8e59

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

autoload/OmniSharp/testrunner.vim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ function! s:buffer.paint() abort
235235
let lines = []
236236
endif
237237
for key in sort(keys(s:tests))
238+
if !s:tests[key].visible | continue | endif
238239
call extend(lines, self.paintproject(key))
239240
for testfile in sort(keys(s:tests[key].files))
240241
if !s:tests[key].files[testfile].visible | continue | endif
@@ -276,9 +277,6 @@ endfunction
276277

277278
function! s:buffer.paintproject(key) abort
278279
let [assembly, sln] = split(a:key, ';')
279-
if !s:tests[a:key].visible
280-
return []
281-
endif
282280
let lines = []
283281
call add(lines, a:key . (len(s:tests[a:key].errors) ? ' ERROR' : ''))
284282
for errorline in s:tests[a:key].errors

0 commit comments

Comments
 (0)