Skip to content

Commit f54ced3

Browse files
author
Kapil Borle
committed
Fix ExtentWidthComparer method
1 parent 7ce98c9 commit f54ced3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Utility/Extensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static int ExtentWidthComparer(this IScriptExtent extentX, IScriptExtent
109109
}
110110

111111
var extentWidthX = extentX.EndOffset - extentX.StartOffset;
112-
var extentWidthY = extentY.EndOffset - extentY.EndOffset;
112+
var extentWidthY = extentY.EndOffset - extentY.StartOffset;
113113
if (extentWidthX > extentWidthY)
114114
{
115115
return 1;

0 commit comments

Comments
 (0)