Skip to content

Commit e012b2b

Browse files
committed
Fix ShowInitialLine right side bug.
1 parent a8fbfa1 commit e012b2b

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Terminal.Gui/Views/TabView/TabRow.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,21 @@ private void RenderTabLineCanvas ()
949949

950950
break;
951951
case TabSide.Right:
952+
// Lower right tee
953+
lc.AddLine (
954+
new (vts.X - 1, vts.Bottom),
955+
0,
956+
Orientation.Vertical,
957+
tab.BorderStyle
958+
);
959+
960+
lc.AddLine (
961+
new (vts.X - 1, vts.Bottom),
962+
1,
963+
Orientation.Horizontal,
964+
tab.BorderStyle
965+
);
966+
952967
break;
953968
default:
954969
throw new ArgumentOutOfRangeException ();

Tests/UnitTests/Views/TabViewTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3178,7 +3178,7 @@ public void Add_Three_TabsSide_Right_ShowInitialLine_False_ChangesTab_Height9 ()
31783178
│hi Tab1
31793179
│ ╭────
31803180
│ │Tab2
3181-
────
3181+
────
31823182
│ │Tab3
31833183
│ ├────
31843184
│ │

0 commit comments

Comments
 (0)