file-line icon indicating copy to clipboard operation
file-line copied to clipboard

nvim foo.cc:42 opens in buffer 2

Open devjgm opened this issue 5 years ago • 1 comments

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?

devjgm avatar May 29 '20 18:05 devjgm

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.

lewis6991 avatar Jun 16 '23 14:06 lewis6991