Skip to content

Commit 93337f3

Browse files
committed
Use s:Later on logger to enable logging in Neovim
1 parent b7caa2f commit 93337f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/fern/logger.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endfunction
3131
function! s:log(level, ...) abort
3232
let content = s:format(a:level, a:000)
3333
if g:fern#logfile is# v:null
34-
call s:echomsg(content)
34+
call s:Later.call({ -> s:echomsg(content) })
3535
else
3636
call s:Later.call({ -> s:writefile(content) })
3737
endif

0 commit comments

Comments
 (0)