obsidian-vimrc-support icon indicating copy to clipboard operation
obsidian-vimrc-support copied to clipboard

VIM Surround Function will sometimes place brackets at a different position than the current selection

Open brandonkboswell opened this issue 4 years ago • 2 comments

Here is a Loom of an issue I am experiencing where the vim-surround gets out of sync over time. Quitting out of Obsidian and reopening the page fixes whatever is causing this.

https://www.loom.com/share/c58db6c70ce149aab06ca00f67d76d8b

brandonkboswell avatar Aug 26 '21 13:08 brandonkboswell

I'm experiencing the exact same issue

LICF01 avatar Aug 27 '21 01:08 LICF01

I spent some time looking into it and couldn't replicate the problem, but I might have a fix. CM is likely accidentally keeping multiple selections due to a bug somewhere else in CM. I've made changes to attempt to fix the bug in 89219379865ca1ed306138d1fa60c51ad6e1df2b and have made a PR #41, but I'd like to get @esm7's thoughts as well.

Andr3wD avatar Aug 30 '21 00:08 Andr3wD