neovim-gtk icon indicating copy to clipboard operation
neovim-gtk copied to clipboard

Clears the `'"` mark on load

Open bombela opened this issue 2 years ago • 0 comments

Describe the bug

Passing a file to the command line will override the " marks on load. While opening a file when nvim-gtk is already running (edit foo) will not override ".

And yes, I tested with an empty config.

Technical information:

  • OS: Linux
  • Neovim version: v0.8.0-1210-gd367ed9b2
  • Neovim-Gtk build version: v0.2.0-142-g73cb9a1

How to reproduce

  • Open a file with nvim file. Move to any line but the first. Close nvim.

  • Open the same file with nvim file. Restore position with command '". (You can also looks at the output of "marks). Make sure to close nvim with the cursor not at the first line.

  • Open nvim-gtk without a file argument. :edit file then '". Notice how it restores the cursor position properly. Close nvim-gtk with the cursor not at the first line.

  • Open the file with nvim-gtk file. Notice how '" doesn't do anything. Notice :marks shows the mark " was reset to first line, first column.

Workaround

Start nvim-gtk with nvim-gtk -c 'edit file'.

bombela avatar Oct 09 '22 01:10 bombela