You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! First of all, sorry for the somewhat complicated init.lua. I couldn't narrow it down further, and I'm not sure yet if this is really a bug :( Basically, this issue occurs when using the "Paste" action in the right-click dropdown. Often, texts like re("scrollview").handle_mouse("left", true) (which can vary in length) get inserted into the buffer, and other things get messed up too. Here's the minimal init.lua:
To reproduce this issue, the prerequisites are as follows:
Set <leader> to <Space>
Map <leader>r to any command (just make sure it's already set; noh is used here)
Now use this init.lua to open any blank file, and insert some random content like the following:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.Fusce sollicitudin dui et mauris bibendum, condimentum ultricies justo rutrum.
Position the cursor anywhere in the file and paste some random text via the right-click menu (e.g., the one above). This issue can then be observed along with other peculiar behaviors like Neovim starting to record content into the u register and entering Insert mode unexpectedly.
Just in case it could be helpful, here are the logs when I perform the paste action:
Searching for "autoload/provider/clipboard.vim" in runtime pathSearching for "/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro//config/nvim/autoload/provider/clipboard.vim"Searching for "/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/lazy.nvim/autoload/provider/clipboard.vim"Searching for "/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/autoload/provider/clipboard.vim"Searching for "/usr/local/Cellar/neovim/0.10.0/share/nvim/runtime/autoload/provider/clipboard.vim"chdir(/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS)chdir(/usr/local/Cellar/neovim/0.10.0/share/nvim/runtime/autoload/provider/)chdir(/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS)sourcing "/usr/local/Cellar/neovim/0.10.0/share/nvim/runtime/autoload/provider/clipboard.vim"line 1: " The clipboard provider uses shell commands to communicate with the clipboard.line 2: " The provider function will only be registered if a supported command isline 3: " available.line 4: line 5: if exists('g:loaded_clipboard_provider')line 6: finishline 7: endifline 8: " Default to 1. provider#clipboard#Executable() may set 2.line 9: " To force a reload:line 10: " :unlet g:loaded_clipboard_providerline 11: " :runtime autoload/provider/clipboard.vimline 12: let g:loaded_clipboard_provider = 1line 13: line 14: let s:copy = {}line 15: let s:paste = {}line 16: let s:clipboard = {}line 17: line 18: " When caching is enabled, store the jobid of the xclip/xsel process keepingline 19: " ownership of the selection, so we know how long the cache is valid.line 20: let s:selection = { 'owner': 0, 'data': [], 'stderr_buffered': v:true }line 21: line 22: function! s:selection.on_exit(jobid, data, event) abortline 35: line 36: let s:selections = { '*': s:selection, '+': copy(s:selection) }line 37: line 38: function! s:try_cmd(cmd, ...) abortline 51: line 52: " Returns TRUE if `cmd` exits with success, else FALSE.line 53: function! s:cmd_ok(cmd) abortline 57: line 58: function! s:split_cmd(cmd) abortline 61: line 62: let s:cache_enabled = 1line 63: let s:err = ''line 64: line 65: function! provider#clipboard#Error() abortline 68: line 69: function! provider#clipboard#Executable() abortline 165: line 166: function! s:clipboard.get(reg) abortline 183: line 184: function! s:clipboard.set(lines, regtype, reg) abortline 242: line 243: function! provider#clipboard#Call(method, args) abortline 254: line 255: " eval_has_provider() decides based on this variable.line 256: let g:loaded_clipboard_provider = empty(provider#clipboard#Executable()) ? 1 : 2calling provider#clipboard#Executable()line 1: " Setting g:clipboard to v:false explicitly opts-in to using the "builtin" clipboard providers belowline 2: if exists('g:clipboard') && g:clipboard isnot# v:falseline 3: if type({}) isnot# type(g:clipboard) || type({}) isnot# type(get(g:clipboard, 'copy', v:null)) || type({}) isnot# type(get(g:clipboard, 'paste', v:null))line 6: let s:err = 'clipboard: invalid g:clipboard'line 7: return ''line 8: endifline 9: line 10: let s:copy = {}line 11: let s:copy['+'] = s:split_cmd(get(g:clipboard.copy, '+', v:null))line 12: let s:copy['*'] = s:split_cmd(get(g:clipboard.copy, '*', v:null))line 13: line 14: let s:paste = {}line 15: let s:paste['+'] = s:split_cmd(get(g:clipboard.paste, '+', v:null))line 16: let s:paste['*'] = s:split_cmd(get(g:clipboard.paste, '*', v:null))line 17: line 18: let s:cache_enabled = get(g:clipboard, 'cache_enabled', 0)line 19: return get(g:clipboard, 'name', 'g:clipboard')line 20: elseif has('mac')line 21: let s:copy['+'] = ['pbcopy']line 22: let s:paste['+'] = ['pbpaste']line 23: let s:copy['*'] = s:copy['+']line 24: let s:paste['*'] = s:paste['+']line 25: let s:cache_enabled = 0line 26: return 'pbcopy'provider#clipboard#Executable returning 'pbcopy'continuing in /usr/local/Cellar/neovim/0.10.0/share/nvim/runtime/autoload/provider/clipboard.vimfinished sourcing /usr/local/Cellar/neovim/0.10.0/share/nvim/runtime/autoload/provider/clipboard.vimcalling provider#clipboard#Call('get', ['+'])line 1: if get(s:, 'here', v:false) " Clipboard provider must not recurse. #7184line 2: return 0line 3: endifline 4: let s:here = v:trueline 5: tryline 6: return call(s:clipboard[a:method],a:args,s:clipboard)calling 2('+')line 1: if type(s:paste[a:reg]) == v:t_funcline 2: return s:paste[a:reg]()line 3: elseif s:selections[a:reg].owner > 0line 4: return s:selections[a:reg].dataline 5: endline 6: line 7: let clipboard_data = s:try_cmd(s:paste[a:reg])calling <SNR>44_try_cmd(['pbpaste'])line 1: let out = systemlist(a:cmd, (a:0 ? a:1 : ['']), 1)Executing command: "'/usr/bin/pbpaste'"line 2: if v:shell_errorline 3: if !exists('s:did_error_try_cmd')line 4: echohl WarningMsgline 5: echomsg "clipboard: error: ".(len(out) ? out[0] : v:shell_error)line 6: echohl Noneline 7: let s:did_error_try_cmd = 1line 8: endifline 9: return 0line 10: endifline 11: return out<SNR>44_try_cmd returning ['Lorem ipsum dolor sit amet, consecte..., condimentum ultricies justo rutrum.']continuing in 2line 8: if match(&clipboard, '\v(unnamed|unnamedplus)') >= 0 && type(clipboard_data) == v:t_list && get(s:selections[a:reg].data, 0, []) ==# clipboard_dataline 11: " When system clipboard return is same as our cache return the cacheline 12: " as it contains regtype informationline 13: return s:selections[a:reg].dataline 14: endline 15: return clipboard_data2 returning ['Lorem ipsum dolor sit amet, consecte..., condimentum ultricies justo rutrum.']continuing in provider#clipboard#Call:return ['Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'Fusce sollicitudin dui et mauris bibendum, condimentum ultricies justo rutrum.'] made pendingline 7: finallyline 8: let s:here = v:falseline 9: endtry:return ['Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'Fusce sollicitudin dui et mauris bibendum, condimentum ultricies justo rutrum.'] resumedprovider#clipboard#Call returning ['Lorem ipsum dolor sit amet, consecte..., condimentum ultricies justo rutrum.']Executing CursorMoved Autocommands for "*"autocommand call s:Highlight_Matching_Pair()Executing: call s:Highlight_Matching_Pair()calling <SNR>15_Highlight_Matching_Pair()line 1: if !exists("w:matchparen_ids")line 2: let w:matchparen_ids = []line 3: endifline 4: " Remove any previous match.line 5: call s:Remove_Matches()calling <SNR>15_Remove_Matches()line 1: if exists('w:paren_hl_on') && w:paren_hl_online 2: while !empty(w:matchparen_ids)line 3: silent! call remove(w:matchparen_ids, 0)->matchdelete()line 4: endwhileline 5: let w:paren_hl_on = 0line 6: endif<SNR>15_Remove_Matches returning #0continuing in <SNR>15_Highlight_Matching_Pairline 6: line 7: " Avoid that we remove the popup menu.line 8: " Return when there are no colors (looks like the cursor jumps).line 9: if pumvisible() || (&t_Co < 8 && !has("gui_running"))line 10: returnline 11: endifline 12: line 13: " Get the character under the cursor and check if it's in 'matchpairs'.line 14: let c_lnum = line('.')line 15: let c_col = col('.')line 16: let before = 0line 17: line 18: let text = getline(c_lnum)line 19: let matches = matchlist(text, '\(.\)\=\%'.c_col.'c\(.\=\)')line 20: if empty(matches)line 21: let [c_before, c] = ['', '']line 22: elseline 23: let [c_before, c] = matches[1:2]line 24: endifline 25: let plist = split(&matchpairs, '.\zs[:,]')line 26: let i = index(plist, c)line 27: if i < 0line 28: " not found, in Insert mode try character before the cursorline 29: if c_col > 1 && (mode() == 'i' || mode() == 'R')line 30: let before = strlen(c_before)line 31: let c = c_beforeline 32: let i = index(plist, c)line 33: endifline 34: if i < 0line 35: " not found, nothing to doline 36: return<SNR>15_Highlight_Matching_Pair returning #0continuing in CursorMoved Autocommands for "*"Executing CursorMoved Autocommands for "*"autocommand <Lua 28: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/cursor.lua:37>Executing: autocommand <Lua 71: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/search.lua:127>Executing: Executing TextChanged Autocommands for "*"autocommand call s:Highlight_Matching_Pair()Executing: call s:Highlight_Matching_Pair()calling <SNR>15_Highlight_Matching_Pair()line 1: if !exists("w:matchparen_ids")line 2: let w:matchparen_ids = []line 3: endifline 4: " Remove any previous match.line 5: call s:Remove_Matches()calling <SNR>15_Remove_Matches()line 1: if exists('w:paren_hl_on') && w:paren_hl_online 2: while !empty(w:matchparen_ids)line 3: silent! call remove(w:matchparen_ids, 0)->matchdelete()line 4: endwhileline 5: let w:paren_hl_on = 0line 6: endif<SNR>15_Remove_Matches returning #0continuing in <SNR>15_Highlight_Matching_Pairline 6: line 7: " Avoid that we remove the popup menu.line 8: " Return when there are no colors (looks like the cursor jumps).line 9: if pumvisible() || (&t_Co < 8 && !has("gui_running"))line 10: returnline 11: endifline 12: line 13: " Get the character under the cursor and check if it's in 'matchpairs'.line 14: let c_lnum = line('.')line 15: let c_col = col('.')line 16: let before = 0line 17: line 18: let text = getline(c_lnum)line 19: let matches = matchlist(text, '\(.\)\=\%'.c_col.'c\(.\=\)')line 20: if empty(matches)line 21: let [c_before, c] = ['', '']line 22: elseline 23: let [c_before, c] = matches[1:2]line 24: endifline 25: let plist = split(&matchpairs, '.\zs[:,]')line 26: let i = index(plist, c)line 27: if i < 0line 28: " not found, in Insert mode try character before the cursorline 29: if c_col > 1 && (mode() == 'i' || mode() == 'R')line 30: let before = strlen(c_before)line 31: let c = c_beforeline 32: let i = index(plist, c)line 33: endifline 34: if i < 0line 35: " not found, nothing to doline 36: return<SNR>15_Highlight_Matching_Pair returning #0continuing in TextChanged Autocommands for "*"Executing TextChanged Autocommands for "*"autocommand lua require('scrollview').refresh_bars_async()Executing: lua require('scrollview').refresh_bars_async()Executing CursorMoved Autocommands for "*"autocommand call s:Highlight_Matching_Pair()Executing: call s:Highlight_Matching_Pair()calling <SNR>15_Highlight_Matching_Pair()line 1: if !exists("w:matchparen_ids")line 2: let w:matchparen_ids = []line 3: endifline 4: " Remove any previous match.line 5: call s:Remove_Matches()calling <SNR>15_Remove_Matches()line 1: if exists('w:paren_hl_on') && w:paren_hl_online 2: while !empty(w:matchparen_ids)line 3: silent! call remove(w:matchparen_ids, 0)->matchdelete()line 4: endwhileline 5: let w:paren_hl_on = 0line 6: endif<SNR>15_Remove_Matches returning #0continuing in <SNR>15_Highlight_Matching_Pairline 6: line 7: " Avoid that we remove the popup menu.line 8: " Return when there are no colors (looks like the cursor jumps).line 9: if pumvisible() || (&t_Co < 8 && !has("gui_running"))line 10: returnline 11: endifline 12: line 13: " Get the character under the cursor and check if it's in 'matchpairs'.line 14: let c_lnum = line('.')line 15: let c_col = col('.')line 16: let before = 0line 17: line 18: let text = getline(c_lnum)line 19: let matches = matchlist(text, '\(.\)\=\%'.c_col.'c\(.\=\)')line 20: if empty(matches)line 21: let [c_before, c] = ['', '']line 22: elseline 23: let [c_before, c] = matches[1:2]line 24: endifline 25: let plist = split(&matchpairs, '.\zs[:,]')line 26: let i = index(plist, c)line 27: if i < 0line 28: " not found, in Insert mode try character before the cursorline 29: if c_col > 1 && (mode() == 'i' || mode() == 'R')line 30: let before = strlen(c_before)line 31: let c = c_beforeline 32: let i = index(plist, c)line 33: endifline 34: if i < 0line 35: " not found, nothing to doline 36: return<SNR>15_Highlight_Matching_Pair returning #0continuing in CursorMoved Autocommands for "*"Executing CursorMoved Autocommands for "*"autocommand <Lua 28: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/cursor.lua:37>Executing: autocommand <Lua 71: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/search.lua:127>Executing: Executing InsertEnter Autocommands for "*"autocommand <Lua 37: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/changelist.lua:105>Executing: autocommand <Lua 57: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/latestchange.lua:56>Executing: autocommand <Lua 72: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/search.lua:194>Executing: Executing InsertEnter Autocommands for "*"autocommand let g:scrollview_ins_mode_buf_lines = nvim_buf_line_count(0)Executing: let g:scrollview_ins_mode_buf_lines = nvim_buf_line_count(0)Executing CursorMovedI Autocommands for "*"autocommand call s:Highlight_Matching_Pair()Executing: call s:Highlight_Matching_Pair()calling <SNR>15_Highlight_Matching_Pair()line 1: if !exists("w:matchparen_ids")line 2: let w:matchparen_ids = []line 3: endifline 4: " Remove any previous match.line 5: call s:Remove_Matches()calling <SNR>15_Remove_Matches()line 1: if exists('w:paren_hl_on') && w:paren_hl_online 2: while !empty(w:matchparen_ids)line 3: silent! call remove(w:matchparen_ids, 0)->matchdelete()line 4: endwhileline 5: let w:paren_hl_on = 0line 6: endif<SNR>15_Remove_Matches returning #0continuing in <SNR>15_Highlight_Matching_Pairline 6: line 7: " Avoid that we remove the popup menu.line 8: " Return when there are no colors (looks like the cursor jumps).line 9: if pumvisible() || (&t_Co < 8 && !has("gui_running"))line 10: returnline 11: endifline 12: line 13: " Get the character under the cursor and check if it's in 'matchpairs'.line 14: let c_lnum = line('.')line 15: let c_col = col('.')line 16: let before = 0line 17: line 18: let text = getline(c_lnum)line 19: let matches = matchlist(text, '\(.\)\=\%'.c_col.'c\(.\=\)')line 20: if empty(matches)line 21: let [c_before, c] = ['', '']line 22: elseline 23: let [c_before, c] = matches[1:2]line 24: endifline 25: let plist = split(&matchpairs, '.\zs[:,]')line 26: let i = index(plist, c)line 27: if i < 0line 28: " not found, in Insert mode try character before the cursorline 29: if c_col > 1 && (mode() == 'i' || mode() == 'R')line 30: let before = strlen(c_before)line 31: let c = c_beforeline 32: let i = index(plist, c)line 33: endifline 34: if i < 0line 35: " not found, nothing to doline 36: return<SNR>15_Highlight_Matching_Pair returning #0continuing in CursorMovedI Autocommands for "*"Executing CursorMovedI Autocommands for "*"autocommand <Lua 47: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/cursor.lua:37>Executing: Executing TextChangedI Autocommands for "*"autocommand call s:Highlight_Matching_Pair()Executing: call s:Highlight_Matching_Pair()calling <SNR>15_Highlight_Matching_Pair()line 1: if !exists("w:matchparen_ids")line 2: let w:matchparen_ids = []line 3: endifline 4: " Remove any previous match.line 5: call s:Remove_Matches()calling <SNR>15_Remove_Matches()line 1: if exists('w:paren_hl_on') && w:paren_hl_online 2: while !empty(w:matchparen_ids)line 3: silent! call remove(w:matchparen_ids, 0)->matchdelete()line 4: endwhileline 5: let w:paren_hl_on = 0line 6: endif<SNR>15_Remove_Matches returning #0continuing in <SNR>15_Highlight_Matching_Pairline 6: line 7: " Avoid that we remove the popup menu.line 8: " Return when there are no colors (looks like the cursor jumps).line 9: if pumvisible() || (&t_Co < 8 && !has("gui_running"))line 10: returnline 11: endifline 12: line 13: " Get the character under the cursor and check if it's in 'matchpairs'.line 14: let c_lnum = line('.')line 15: let c_col = col('.')line 16: let before = 0line 17: line 18: let text = getline(c_lnum)line 19: let matches = matchlist(text, '\(.\)\=\%'.c_col.'c\(.\=\)')line 20: if empty(matches)line 21: let [c_before, c] = ['', '']line 22: elseline 23: let [c_before, c] = matches[1:2]line 24: endifline 25: let plist = split(&matchpairs, '.\zs[:,]')line 26: let i = index(plist, c)line 27: if i < 0line 28: " not found, in Insert mode try character before the cursorline 29: if c_col > 1 && (mode() == 'i' || mode() == 'R')line 30: let before = strlen(c_before)line 31: let c = c_beforeline 32: let i = index(plist, c)line 33: endifline 34: if i < 0line 35: " not found, nothing to doline 36: return<SNR>15_Highlight_Matching_Pair returning #0continuing in TextChangedI Autocommands for "*"Executing TextChangedI Autocommands for "*"autocommand if g:scrollview_ins_mode_buf_lines !=# nvim_buf_line_count(0) | execute "lua require('scrollview').refresh_bars_async()" | endif | let g:scrollview_ins_mode_buf_lines = nvim_buf_line_count(0)Executing: if g:scrollview_ins_mode_buf_lines !=# nvim_buf_line_count(0) | execute "lua require('scrollview').refresh_bars_async()" | endif | let g:scrollview_ins_mode_buf_lines = nvim_buf_line_count(0)Executing: execute "lua require('scrollview').refresh_bars_async()" | endif | let g:scrollview_ins_mode_buf_lines = nvim_buf_line_count(0)Executing: lua require('scrollview').refresh_bars_async()Executing: endif | let g:scrollview_ins_mode_buf_lines = nvim_buf_line_count(0)Executing: let g:scrollview_ins_mode_buf_lines = nvim_buf_line_count(0)-- INSERT --recording @uchdir(/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS)chdir(/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/)chdir(/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS)chdir(/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS)chdir(/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/)chdir(/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS)chdir(/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS)chdir(/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/)chdir(/private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS)Executing: doautocmd <nomodeline> User ScrollViewRefreshExecuting User Autocommands for "ScrollViewRefresh"autocommand <Lua 35: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/changelist.lua:58>Executing: autocommand <Lua 42: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/conflicts.lua:53>Executing: autocommand <Lua 46: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/cursor.lua:26>Executing: autocommand <Lua 51: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/diagnostics.lua:68>Executing: autocommand <Lua 54: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/folds.lua:26>Executing: autocommand <Lua 55: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/latestchange.lua:24>Executing: autocommand <Lua 58: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/loclist.lua:25>Executing: autocommand <Lua 62: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/marks.lua:43>Executing: autocommand <Lua 64: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/quickfix.lua:24>Executing: autocommand <Lua 68: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/search.lua:26>Executing: autocommand <Lua 74: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/spell.lua:43>Executing: autocommand <Lua 78: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/textwidth.lua:24>Executing: autocommand <Lua 80: /private/var/folders/jy/91xg_8j9169dydct2k4r7yw80000gn/T/scrollview.23bT4H8aCS/.repro/plugins/nvim-scrollview/lua/scrollview/signs/trail.lua:25>
Many thanks beforehand!
The text was updated successfully, but these errors were encountered:
Neovim version: NVIM v0.10.0
Operating system: macOS 14.5
Hello! First of all, sorry for the somewhat complicated
init.lua
. I couldn't narrow it down further, and I'm not sure yet if this is really a bug :( Basically, this issue occurs when using the "Paste" action in the right-click dropdown. Often, texts likere("scrollview").handle_mouse("left", true)
(which can vary in length) get inserted into the buffer, and other things get messed up too. Here's the minimalinit.lua
:To reproduce this issue, the prerequisites are as follows:
<leader>
to<Space>
<leader>r
to any command (just make sure it's already set;noh
is used here)Now use this
init.lua
to open any blank file, and insert some random content like the following:Position the cursor anywhere in the file and paste some random text via the right-click menu (e.g., the one above). This issue can then be observed along with other peculiar behaviors like Neovim starting to record content into the
u
register and entering Insert mode unexpectedly.Just in case it could be helpful, here are the logs when I perform the paste action:
Many thanks beforehand!
The text was updated successfully, but these errors were encountered: