Skip to content

Commit 11ee654

Browse files
committed
Draw rounded corners with parens as well.
1 parent 89d67cb commit 11ee654

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/canvas.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ func (c *Canvas) isRoundedCorner(i Index) Orientation {
434434

435435
isVerticalSegment := func(i Index) bool {
436436
r := c.runeAt(i)
437-
return r == '|' || r == '+'
437+
return r == '|' || r == '+' || r == ')' || r == '('
438438
}
439439

440440
// .- or .-
@@ -443,8 +443,8 @@ func (c *Canvas) isRoundedCorner(i Index) Orientation {
443443
return NW
444444
}
445445

446-
// -. or -.
447-
// | +
446+
// -. or -. or -.
447+
// | + )
448448
if dashLeft && isVerticalSegment(lowerRight) {
449449
return NE
450450
}

0 commit comments

Comments
 (0)