tpope / vim-surround

surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease
https://www.vim.org/scripts/script.php?script_id=1697
13.39k stars 444 forks source link

Strange symbols appear when surrounding text #352

Closed cristobaltapia closed 2 years ago

cristobaltapia commented 2 years ago

Hi,

I have been experiencing a strange bug since a couple of days. When surrounding text with (...), "..." or '...' some unwanted characters are added. I use neovim 0.7.0 in Archlinux.

For example:

Hello World!

Placing the cursor on Hello and pressing ysiw) results in the following

<80><fc>^B)Hello<80><fc>^B) World!

Strangely enough, when doing the equivalent ysiwb (b instead of )) it works normally. What could be causing this behavior?

tpope commented 2 years ago

I don't know, but see #313.

cristobaltapia commented 2 years ago

Oh! Thanks for that hint! I didn't find it when looking for existing issues. That is my problem, so it has to do with my terminal (foot) and the new version of neovim.

dnkl commented 2 years ago

It's been fixed in the latest release of foot. You can either compile it yourself, or wait for your distro to update its package :)

cristobaltapia commented 2 years ago

Thanks!