madskristensen / Tweakster

A Visual Studio extension
Apache License 2.0
239 stars 23 forks source link

Fix `CopyWithoutIndentation` handling to much #51

Closed bert2 closed 3 years ago

bert2 commented 3 years ago

CopyWithoutIndentation didn't properly skip selections with multiple spans.

It also didn't skip zero-width selections which prevented quick duplication of a line by pressing [Ctrl]+[C], [V] without selecting anything (related to #46).

madskristensen commented 3 years ago

Thanks

bmarinov commented 3 years ago

@bert2 is it possible that this broke copying whole lines (when nothing is selected)? I started having this issue this week and just realized that disabling CopyWithoutIndentation fixes it.

bert2 commented 3 years ago

I actually created this PR to fix exactly that bug.

Maybe you are still seeing it, because the latest version hasn't been released on the marketplace yet?