Closed freezboltz closed 3 years ago
Pasting the value as it is, not respecting the new line or multi-line paste
Expected Behavior
Should be as follows: This is line 1 This is line 2 This is line 3
Actual Behavior
This is line 1^JThis is line 2^JThis is line 3^J or This is line 1^@This is line 2^@This is line 3^@
```viml set nocompatible hidden laststatus=2 if !filereadable('/tmp/plug.vim') silent !curl --insecure -fLo /tmp/plug.vim \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim endif source /tmp/plug.vim call plug#begin('/tmp/plugged') Plug 'nvim-lua/popup.nvim' Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' call plug#end() autocmd VimEnter * PlugClean! | PlugUpdate --sync | close lua << EOF local actions = require('telescope.actions') require('telescope').setup { defaults = { file_sorter = require('telescope.sorters').get_fzy_sorter, prompt_prefix = ' $ ', color_devicons = true, file_previewer = require('telescope.previewers').vim_buffer_cat.new, grep_previewer = require('telescope.previewers').vim_buffer_vimgrep.new, qflist_previewer = require('telescope.previewers').vim_buffer_qflist.new, mappings = { i = { [""] = false, [""] = actions.send_to_qflist, }, } }, extensions = { fzy_native = { override_generic_sorter = false, override_file_sorter = true, } } } require('telescope').load_extension('fzy_native') EOF ```
Here is the gif of above mention bug
Description
Pasting the value as it is, not respecting the new line or multi-line paste
Expected Behavior
Should be as follows: This is line 1 This is line 2 This is line 3
Actual Behavior
This is line 1^JThis is line 2^JThis is line 3^J or This is line 1^@This is line 2^@This is line 3^@
Details
Reproduce
1. nvim -nu test.vim 2. :Telescope registers 3. select a multi-line registerEnvironment
- nvim --version output: NVIM v0.5.0-dev+1444-gc1120ad0e - Operating system: Manjaro Latest - Telescope commit: 6ac5ee0 and fe145b8 latest one e5bd496Configuration
```viml set nocompatible hidden laststatus=2 if !filereadable('/tmp/plug.vim') silent !curl --insecure -fLo /tmp/plug.vim \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim endif source /tmp/plug.vim call plug#begin('/tmp/plugged') Plug 'nvim-lua/popup.nvim' Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' call plug#end() autocmd VimEnter * PlugClean! | PlugUpdate --sync | close lua << EOF local actions = require('telescope.actions') require('telescope').setup { defaults = { file_sorter = require('telescope.sorters').get_fzy_sorter, prompt_prefix = ' $ ', color_devicons = true, file_previewer = require('telescope.previewers').vim_buffer_cat.new, grep_previewer = require('telescope.previewers').vim_buffer_vimgrep.new, qflist_previewer = require('telescope.previewers').vim_buffer_qflist.new, mappings = { i = { [""] = false,
[""] = actions.send_to_qflist,
},
}
},
extensions = {
fzy_native = {
override_generic_sorter = false,
override_file_sorter = true,
}
}
}
require('telescope').load_extension('fzy_native')
EOF
```