Version confirmation
Following prerequisites
Not a user config issue
Neovim version
NVIM v0.12.4
Operating system/version
Ubuntu-24.04
Terminal name/version
Windows Terminal
$TERM environment variable
No response
Branch info
main (Default/Latest)
Fetch Preferences
SSH (use_ssh = true)
How to reproduce the issue
For example, when I create a new file called hello.cc and finish editing it, I save and exit using :wq. When I use the cat command to check the file contents, everything looks fine.
However, when I open the file again with nvim hello.cc, without performing any actions, the file content is automatically modified: information from my clipboard is inserted into the file, and the last character of the line where the cursor is located is deleted and replaced with 0.
Moreover, the clipboard content is not inserted just once. Every time I open the file with nvim hello.cc, the clipboard content is automatically inserted, and the last character of the line where the cursor is located is deleted and replaced with 0.
After running:
rm -rf ~/.local/state/nvim/shada
the clipboard content is no longer automatically inserted. However, the other problem still remains: the last character of the line where the cursor is located is still deleted and replaced with 0.
When I start Neovim without loading any plugins and open hello.cc, the file contents are completely normal.
Expected behavior
When opening a file, the clipboard content should not be inserted automatically, and the last character of the line where the cursor is located should not be deleted and replaced with 0.
Actual behavior
Additional information
No response
Version confirmation
Following prerequisites
Not a user config issue
Neovim version
NVIM v0.12.4
Operating system/version
Ubuntu-24.04
Terminal name/version
Windows Terminal
$TERM environment variable
No response
Branch info
main (Default/Latest)
Fetch Preferences
SSH (use_ssh = true)
How to reproduce the issue
For example, when I create a new file called hello.cc and finish editing it, I save and exit using :wq. When I use the cat command to check the file contents, everything looks fine.
However, when I open the file again with nvim hello.cc, without performing any actions, the file content is automatically modified: information from my clipboard is inserted into the file, and the last character of the line where the cursor is located is deleted and replaced with 0.
Moreover, the clipboard content is not inserted just once. Every time I open the file with nvim hello.cc, the clipboard content is automatically inserted, and the last character of the line where the cursor is located is deleted and replaced with 0.
After running:
rm -rf ~/.local/state/nvim/shada
the clipboard content is no longer automatically inserted. However, the other problem still remains: the last character of the line where the cursor is located is still deleted and replaced with 0.
When I start Neovim without loading any plugins and open hello.cc, the file contents are completely normal.
Expected behavior
When opening a file, the clipboard content should not be inserted automatically, and the last character of the line where the cursor is located should not be deleted and replaced with 0.
Actual behavior
Additional information
No response