File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -358,8 +358,16 @@ func (c *Canvas) Triangles() []Triangle {
358358 }
359359 case '<' :
360360 o = W
361+ r := c .runeAt (start .west ())
362+ if r == 'o' || r == '*' {
363+ needsNudging = true
364+ }
361365 case '>' :
362366 o = E
367+ r := c .runeAt (start .east ())
368+ if r == 'o' || r == '*' {
369+ needsNudging = true
370+ }
363371 default :
364372 continue
365373 }
Original file line number Diff line number Diff line change @@ -125,6 +125,18 @@ func (t *Triangle) Draw(out io.Writer) {
125125 }
126126 case W :
127127 r = 180
128+ if t .needsNudging {
129+ x0 -= 8
130+ x1 -= 8
131+ x2 -= 8
132+ }
133+ case E :
134+ r = 0
135+ if t .needsNudging {
136+ x0 -= 8
137+ x1 -= 8
138+ x2 -= 8
139+ }
128140 case S :
129141 r = 90
130142 if t .needsNudging {
You can’t perform that action at this time.
0 commit comments