# vim: Fix regression in surround behavior \(\#38344\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4743fe84151f8a014591f65a60da06529245abbc)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4743fe84151f8a014591f65a60da06529245abbc

Requested commit: 4743fe84151f8a014591f65a60da06529245abbc

Commit: 4743fe84151f8a014591f65a60da06529245abbc

Tree: 3e9e8d60ab7395b0b4d7b68d21097018872b8b40

Author: Dino

Committer: GitHub

## Message

```
vim: Fix regression in surround behavior (#38344)

Fix an issue introduced in
https://github.com/zed-industries/zed/pull/37321 where vim's surround
wouldn't work as expected when replacing quotes with non-quotes, with
whitespace always being added, regardless of whether the opening or
closing bracket was used. This is not the intended, or previous,
behavior, where only the opening bracket would trigger whitespace to be
added.

Closes #38169 

Release Notes:

- Fixed regression in vim's surround plugin that ignored whether the
opening or closing bracket was being used when replacing quotes, so
space would always be added
```

## Parents

- [0f4bdca9e9742bc2acea8b72497e55f3deb4805a](https://git.cafe/gitcafe/zed/commit/0f4bdca9e9742bc2acea8b72497e55f3deb4805a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4743fe84151f8a014591f65a60da06529245abbc?format=markdown)
