Skip to content

Commit b3e3a65

Browse files
committed
Solve the line break flashback bug
1 parent 50cd38a commit b3e3a65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CaseConverter/ConvertCaseCommand.cs

+4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ protected override void Execute(object sender, EventArgs e)
6262
foreach (TextRange item in selection.TextRanges)
6363
{
6464
var text = item.StartPoint.GetText(item.EndPoint);
65+
if (string.IsNullOrEmpty(text))
66+
{
67+
continue;
68+
}
6569
int options = (int)(vsFindOptions.vsFindOptionsMatchWholeWord |
6670
vsFindOptions.vsFindOptionsMatchCase |
6771
vsFindOptions.vsFindOptionsMatchInHiddenText |

0 commit comments

Comments
 (0)