mirror of
https://github.com/tpope/vim-surround.git
synced 2025-11-14 06:13:48 -05:00
Consider this code:
```javascript
_.map(
(
mapObjOnK
)
);
```
If the cursor is on the 3rd line and you press <kbd>d</kbd><kbd>s</kbd><kbd>b</kbd>, the code will become
```javascript
_.map(
);
mapObjOnK
```
The problem occurs if `startofline` is off.
With this change, I set it before processing the the call to
`dosurround`, and then, after the call, I'm unsetting it if
it was unset.