Skip to content

Commit

Permalink
firenvim script: move additional logged messages to stderr
Browse files Browse the repository at this point in the history
Having them in stdout would actually cause the browser messages to be
malformed (the length at the beginning of the JSON would be wrong, as
it's precomputed).
  • Loading branch information
glacambre committed Jan 4, 2023
1 parent c9cab43 commit aa6311f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/firenvim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,8 @@ function! s:get_executable_content(data_dir, prolog) abort
\ "-c 'try|" .
\ 'call firenvim#run()|' .
\ 'catch|' .
\ "call chansend(g:firenvim_c,[\"f\\n\\n\\n\"..json_encode({\"messages\":[\"Your plugin manager did not load the Firenvim plugin for neovim.\"]+g:firenvim_o,\"version\":\"0.0.0\"})])|" .
\ "call chansend(2,[\"Firenvim not in rtp:\"..&rtp])|" .
\ "call chansend(g:firenvim_c,[\"f\\n\\n\\n\"..json_encode({\"messages\":[\"Your plugin manager did not load the Firenvim plugin for neovim.\"],\"version\":\"0.0.0\"})])|" .
\ "call chansend(2,[\"Firenvim not in rtp:\"..&rtp]+g:firenvim_o)|" .
\ 'qall!' .
\ "|endtry'\n"
endfunction
Expand Down

0 comments on commit aa6311f

Please sign in to comment.