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.43k stars 446 forks source link

strange <80><fc>^B characters after `csw"` surrounding #313

Closed mkreim closed 2 years ago

mkreim commented 4 years ago

Hi,

I have a problem with the surround plugin and I have no idea what is causing it or how to debug into it to find the source.

So what happens is: I have a text like:

server

I place the cursor somewhere in the word and type csw" and I end with (for a strange reason I cannot copy it therefore the screenshot) image

Do you have any ideas what this is causing it? Is this a strange utf-8 problem with the gui vim version?

Thanks a lot

MyBeansAreBaked commented 2 years ago

I also experience this issue using neovim in the foot terminal on archlinux. Strangely, it isn't a problem in alacritty.

dnkl commented 2 years ago

@MyBeansAreBaked are you seeing this with neovim before the 0.7 release?

Background: latest git version of foot does not have this issue. When I bisected it, the "fix" was related to neovim 0.7 improving their support for disambiguated keys. Thus, I expect older versions of neovim also does not have this issue (on foot).

https://codeberg.org/dnkl/foot/issues/1009

MyBeansAreBaked commented 2 years ago

@dnkl hanks for the info. Downgrading to neovim v0.6.1 does fix this issue in the stable foot release. Upgrading to the git version of foot (1.11.0-164-gdd03e10c) also fixes this issue, on neovim v0.7.0.

I suppose that this original ticket must have been to do with an issue in gvim.

dnkl commented 2 years ago

Fixed in foot-1.12.0

edit: not the original issue, though!

tpope commented 2 years ago

The original issue was about GVim on Ubuntu. I'm not seeing it on the new 22.04 LTS, so I'm going to chalk this up as another case of a fixed bug in other software, until I hear otherwise.