Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clipboard unnamedplus breaks block copy-pasting #12615

Closed
eduardoarandah opened this issue Jul 9, 2020 · 10 comments
Closed

Clipboard unnamedplus breaks block copy-pasting #12615

eduardoarandah opened this issue Jul 9, 2020 · 10 comments
Labels
bug issues reporting wrong behavior

Comments

@eduardoarandah
Copy link

  • nvim --version: NVIM v0.4.3
  • vim -u DEFAULTS (version: ) behaves differently? NO
  • Operating system/version: Description: Ubuntu 18.04.4 LTS
  • Terminal name/version: wsl
  • $TERM: xterm-256color

Steps to reproduce using nvim -u NORC

Set clipboard to unnamed plus and block pasting stops working

ok

Actual behaviour

block pasting stops working

Expected behaviour

block pasting work

@eduardoarandah eduardoarandah added the bug issues reporting wrong behavior label Jul 9, 2020
@ovitente
Copy link

ovitente commented Jul 9, 2020

Confirming. I have the same issue.
The same nvim version on mac, Catalina 10.15.5

@hugomg
Copy link

hugomg commented Jul 9, 2020

It works on me on Fedora 32 and the latest Nvim. Could this have to do with Wayland vs X? I am using Wayland and wl-copy/wl-paste.

@ovitente
Copy link

It works on me on Fedora 32 and the latest Nvim. Could this have to do with Wayland vs X? I am using Wayland and wl-copy/wl-paste.
It does not apply to any graphical system, this issue works on native console mod. And gif from eduardo shows that apparently he is using windows 10.

@eduardoarandah
Copy link
Author

Oh I'm so sorry, it may be important to note that this issue happened to me in ubuntu inside WSL2 in windows.
(WSL clipboard doesn't have any interaction with windows that I know of)

https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux

@hugomg
Copy link

hugomg commented Jul 11, 2020

@ovitente It has to do with the graphical system because unnamedplus interacts with the system clipboard.

In any case, I tested again using X.org and xclip and it also worked. Maybe it is a Linux vs non-Linux thing then?

@eduardoarandah
Copy link
Author

@ovitente It has to do with the graphical system because unnamedplus interacts with the system clipboard.

In any case, I tested again using X.org and xclip and it also worked. Maybe it is a Linux vs non-Linux thing then?

Do you have any commands I can run to find out what’s The clipboard being used here?

@hugomg
Copy link

hugomg commented Jul 11, 2020

I don't know if this is the best way but I think you can use

:echo provider#clipboard#Executable()

You can also find some documentation about clipboard providers on :help provider-clipboard.

@eduardoarandah
Copy link
Author

nvim -u NONE
:echo provider#clipboard#Executable()

Returns:
win32yank (why? if I started with -u NONE and this is an extra configuration)

:version

Returns:

NVIM v0.4.3
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: /usr/bin/gcc-5 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -DMIN_LOG_LEVEL=3 -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-
prototypes -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/home/travis/build/neovim/bot-ci/build
/neovim/build/config -I/home/travis/build/neovim/bot-ci/build/neovim/src -I/home/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/home/travis/build/neovim/bot-ci/build/neovim/build
/src/nvim/auto -I/home/travis/build/neovim/bot-ci/build/neovim/build/include
Compiled by travis@travis-job-9a287301-34f2-4b86-92e3-462594f51f36

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

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/home/travis/build/neovim/bot-ci/build/neovim/build/nvim.AppDir/usr/share/nvim"

@ovitente
Copy link

:version
NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra
-pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protecto
r-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-201
91107-13403-1or2rj3/neovim-0.4.3/build/config -I/tmp/neovim-20191107-13403-1or2rj3/neovim-0.4.3/src -I/usr/local/include -I/tmp/neovim-20191107-13403-1
or2rj3/neovim-0.4.3/deps-build/include -I/usr/local/opt/gettext/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develope
r/SDKs/MacOSX10.15.sdk/usr/include -I/tmp/neovim-20191107-13403-1or2rj3/neovim-0.4.3/build/src/nvim/auto -I/tmp/neovim-20191107-13403-1or2rj3/neovim-0.
4.3/build/include
Compiled by brew@Mojave.local

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

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

:echo provider#clipboard#Executable()
returns
pbcopy
Mac os catalina.

@DArcMattr
Copy link

I believe this is a duplicate of #1822

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior
Projects
None yet
Development

No branches or pull requests

5 participants