Skip to content

Commit b8d5046

Browse files
committed
Do not try to switch to log buffer when 'nohidden'
1 parent 91050b8 commit b8d5046

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/OmniSharp/log.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ function! OmniSharp#log#Open(...)
6363
if OmniSharp#py#CheckForError() | return | endif
6464
endif
6565
let cmd = (a:0 && type(a:1) == type('') && len(a:1)) ? a:1 : 'edit'
66+
if cmd ==# 'edit' && !&hidden
67+
let cmd = 'split'
68+
endif
6669
exec cmd logfile
6770
endfunction
6871

0 commit comments

Comments
 (0)