emartineau / SelectionWrapper

Wraps text depending on the key pressed, like in Visual Studio Code
MIT License
35 stars 9 forks source link

Multi-cusor editing does not wrap selections #6

Closed ite-klass closed 4 years ago

ite-klass commented 4 years ago

For content

abstract
abstract

Expected: both b characters are wrapped in parentheses (just like when this is done with a single cursor on a single line)

Actual:

a(b
b
)stract
a(b
b
)stract

When multi-cursor mode is entered from bottom to top instead the b is being replaced:

a(stract
a(stract
emartineau commented 4 years ago

As mentioned in (#5) multi-cursor wrapping is disabled.

Now box selections should be properly supported (which seems to be what this issue is describing). The output from your example should now be:

a(b)stract
a(b)stract

Let me know if this now works as expected. Thanks!