file-line
file-line copied to clipboard
nvim foo.cc:42 opens in buffer 2
I'm using NVIM v0.4.3 with this plugin. I noticed that when opening a file to a line number it opens in buffer 2 rather than buffer 1. For example:
nvim foo.txt # Opens in buffer 1, run :ls to see
nvim foo.txt:1 # Opens in buffer 2, run :ls to see
This isn't really a problem, but it's strange so I'm reporting it. Is there any way to fix this?
This happens because foo.txt:1 is opened in buffer 1, then the plugin detects this and opens foo.txt in a new buffer and deletes buffer 1.
It's not possible to fix this.