tommcdo / vim-exchange

Easy text exchange operator for Vim
MIT License
756 stars 23 forks source link

Highlighting is not cleared when exchanging indented nested regions #24

Closed wellle closed 10 years ago

wellle commented 10 years ago

Starting from this buffer: screen shot 2014-05-09 at 16 52 25

I select the inner paragraph for exchanging cxip: screen shot 2014-05-09 at 16 52 34

And exchange it with the inner block jcxi{: screen shot 2014-05-09 at 16 53 16

The highlighted indentation is not properly cleared.

tommcdo commented 10 years ago

I'm unable to reproduce this. When I perform that exchange, the line that your cursor is on in the final screenshot isn't even present.

wellle commented 10 years ago

Interesting, let me try to reproduce without other plugins.

tommcdo commented 10 years ago

I end up with the same resulting document if I use cxvi{ for the second exchange (the Operator-pending v changes the selection to work characterwise). However, there's no leftover highlighting when I do that.

wellle commented 10 years ago

You are correct. It doesn't happen when I start Vim without other plugins. I might comment here again if I decide to bisect my plugins to find the culprit. Thanks and sorry for the noise!

tommcdo commented 10 years ago

No worries. I'm always interested in making my plugins cooperate with others, as long as the others are doing reasonable things. :)