firenvim icon indicating copy to clipboard operation
firenvim copied to clipboard

Neovim inserts null character ^@ at first line in p5js editor

Open christofferaakre opened this issue 2 years ago • 7 comments

  • 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.

christofferaakre avatar May 13 '22 12:05 christofferaakre

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.

glacambre avatar May 13 '22 20:05 glacambre

I'm having the same issue when editing files using FireNVim on GitHub.

dclong avatar Jun 14 '22 17:06 dclong

@dclong what browser, os and neovim version are you using?

glacambre avatar Jun 14 '22 18:06 glacambre

OS: Ubuntu 20.04 Browser: Chrome 102.0.5005.61 NeoVim: 0.4.3

dclong avatar Jun 21 '22 03:06 dclong

@dclong please update your neovim, your are several stable versions behind.

glacambre avatar Jun 21 '22 04:06 glacambre

@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

dclong avatar Jul 01 '22 16:07 dclong

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

dclong avatar Dec 08 '22 06:12 dclong