{"action":"closed","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/3828","labels_url":"https://api.github.com/repos/neovim/neovim/issues/3828/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/3828/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/3828/events","html_url":"https://github.com/neovim/neovim/issues/3828","id":121848876,"number":3828,"title":"neovim captures Shift-insert paste into terminal of suspended instance","user":{"login":"hardenedapple","id":4070620,"avatar_url":"https://avatars.githubusercontent.com/u/4070620?v=3","gravatar_id":"","url":"https://api.github.com/users/hardenedapple","html_url":"https://github.com/hardenedapple","followers_url":"https://api.github.com/users/hardenedapple/followers","following_url":"https://api.github.com/users/hardenedapple/following{/other_user}","gists_url":"https://api.github.com/users/hardenedapple/gists{/gist_id}","starred_url":"https://api.github.com/users/hardenedapple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardenedapple/subscriptions","organizations_url":"https://api.github.com/users/hardenedapple/orgs","repos_url":"https://api.github.com/users/hardenedapple/repos","events_url":"https://api.github.com/users/hardenedapple/events{/privacy}","received_events_url":"https://api.github.com/users/hardenedapple/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/neovim/neovim/labels/clipboard","name":"clipboard","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/neovim/neovim/milestones/10","html_url":"https://github.com/neovim/neovim/milestones/0.2","labels_url":"https://api.github.com/repos/neovim/neovim/milestones/10/labels","id":1183808,"number":10,"title":"0.2","description":"beta release, codename: \"keanu\"","creator":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"open_issues":130,"closed_issues":60,"state":"open","created_at":"2015-06-27T19:05:24Z","updated_at":"2016-01-22T20:02:35Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-12-12T11:11:30Z","updated_at":"2016-01-22T20:02:35Z","closed_at":"2016-01-22T20:02:35Z","body":"When you copy something into the primary clipboard inside nvim, suspend it to get to the terminal you're running in, and then paste with Shift-insert or Middle click, the text is not printed on the command line, and neovim seems to interpret the text as a macro.\r\n\r\nSteps to reproduce:\r\n\r\n- open nvim with \"nvim -u NONE\"\r\n- type the string \"this is a test\" in that buffer\r\n- yank the substring \"is a test\" into the '*' register\r\n- suspend that instance of nvim\r\n- attempt to paste the string into the same terminal with Shift-insert or Middle click\r\n\r\nObservations:\r\n- Text does not appear at the command prompt\r\n- when bringing nvim back into the foreground the string \"s a test\" has been inserted into the file\r\n\r\nVersion:\r\n```\r\nNVIM 0.1.1 (compiled Dec  5 2015 22:03:57)\r\nBuild type: RelWithDebInfo\r\nCompilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.1.1/src -I/usr/include -I/usr/include -I/usr/include/luajit-2.0 -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include\r\nCompiled by builduser\r\n\r\nOptional features included (+) or not (-): +acl   +iconv    +jemalloc \r\nFor differences from Vim, see :help vim-differences\r\n\r\n   system vimrc file: \"$VIM/sysinit.vim\"\r\n  fall-back for $VIM: \"/usr/share/nvim\"\r\n```\r\n\r\n\r\nSystem:\r\n`4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015 x86_64 GNU/Linux`\r\n\r\nI've been using xterm, but gave it a quick check with two random other terminal emulators -- roxterm and termite -- and observed the same symptoms.\r\n\r\n\r\nI apologise I haven't tested this on the latest version, or found which commit started this behaviour, but the binary from a default 'make'  wouldn't allow yanking to the X clipboards, and I'm feeling rather lazy right now.\r\n"}}