Skip to content

Clipboard paste in select mode only yields "a" #11344

Closed
@infokiller

Description

@infokiller
  • nvim --version:
NVIM v0.4.2
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.4.2/src -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
  • vim -u DEFAULTS (version: ) behaves differently?
    Yes, it works correctly
  • Operating system/version: Linux 5.3.7
  • Terminal name/version: termite v15
  • $TERM: xterm-termite

Steps to reproduce using nvim -u NORC

  1. Copy something to the system clipboard. Example command for Linux: echo -n yyy | xclip -selection clipboard.
  2. Start neovim and add some text, then start select mode. For example from the command line:
  nvim -u NORC -c 'call feedkeys("ixxx\<Esc>bve\<C-g>", "t")'
  1. Paste the clipboard content to the terminal (typically using a keybinding such as <Ctrl-Shift-v>).

Actual behaviour

The selected text is replaced by the clipboard content and neovim is in insert mode.

Expected behaviour

The selected text is replaced by "a" and neovim is in normal mode. Also, the registers are modified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissues reporting wrong behaviorclipboardclipboard, paste

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions