firenvim
firenvim copied to clipboard
Neovim inserts null character ^@ at first line in p5js editor
- OS Version: Ubuntu 20.04
- Browser Version: Google Chrome Version 101.0.4951.64 (Official Build) (64-bit)
- Browser Addon Version: 0.2.12
- Neovim Plugin Version: Sorry, not sure how to find this
What I tried to do
Tried to use firenvim on https://editor.p5js.org/
What happened
Neovim does not engage automatically as the p5js editor does not use a textarea. This is expected.
Using firenvim still works, however it for some reason puts a null character at the start of the editor,
i.e. at line 1, column 1. If I copy the character and paste it into my terminal, it shows as ^@
, which
is indeed a null character. This causes a syntax error in the JavaScript code I am typing in the editor,
and I end up having to remove it manually everytime I :wq
.
To be clear, this does not seem to happen elsewhere, I've only had this happen on p5js so far.
Thanks for the report. It's slightly surprising as p5js is using CodeMirror, which Firenvim already supports. I'll dig deeper when I have time.
I'm having the same issue when editing files using FireNVim on GitHub.
@dclong what browser, os and neovim version are you using?
OS: Ubuntu 20.04 Browser: Chrome 102.0.5005.61 NeoVim: 0.4.3
@dclong please update your neovim, your are several stable versions behind.
@glacambre,
I'm seeing the same issue in another environment too. OS: macOS Monterey (12.4) Browser: Chrome 102.0.5005.61 NeoVim: 0.7.0
The same issue is observed on
- Ubuntu 22.04 / !Pop OS 22.04
- Chrome 106.0.5249.119 (Official Build) (64-bit)
- NeoVim 0.7.2