-
Notifications
You must be signed in to change notification settings - Fork 72
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
Matchup adding random characters on the beginning of the buffer. #325
Comments
I also ran into this problem, but I couldn't reproduce it stably. I found that this BUG is caused by the text that should be written into the popup window being written into the buffer. The call chain is as follows. Error detected while processing function <SNR>53_timer_callback[20]..7[153]..<SNR>53_do_offscreen[21]..<SNR>53_do_offscreen_popup_nvim[67]..<SNR>53_populate_floating_win[48]..<SNR>53_set_popup
|
+1 to this issue, took a while to figure out which plugin was messing up my nvim buffers with same symptoms. Currently have disabled plugin to bypass this issue. |
It took me a while to find out vim-matchup adding new line on top of my file. It exists in both neovim 0.9.x and 0.10. It might relate to cursor movement. |
Can anyone please provide a configuration and reproduction steps? |
I saw same behavior as @samtgarson. This may relate to relatively large lua file(>300 loc). But I couldn't reproduce it stably. vim.g.matchup_enabled = true
vim.g.matchup_surround_enabled = true
-- vim.g.matchup_transmute_enabled = 1
vim.g.matchup_matchparen_deferred = true
vim.g.matchup_matchparen_offscreen = { method = 'popup' }
vim.cmd([[nnoremap <c-s-k> :<c-u>MatchupWhereAmI?<cr>]])
-- treesitter
matchup = {
enable = enable, -- mandatory, false will disable the whole extension
},
|
Actually I have the same problem, but it happens only if I have activated |
I can also report that I'm still having this problem with both |
@andymass is there any way to get this issue re-opened since the problem still persists? |
Explain the issue
When
matchup_matchparen_offscreen
method is set topopup
, and you split the screen and go off screen and the paren matched, it will add some random character on the beginning of the file. Something like the image below.Open a file split the window, and scroll to the bottom until offscreen.
It should not add random characters on the first line of the buffer.
It add random characters on the first line of the buffer.
Minimal vimrc file
Please provide a minimal vimrc file that reproduces the issue. The
following should often suffice:
The text was updated successfully, but these errors were encountered: