Skip to content

Commit 43c83ee

Browse files
committed
Fix ShowInitialLine right side bug.
1 parent bd66693 commit 43c83ee

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
@@ -948,6 +948,21 @@ private void RenderTabLineCanvas ()
948948

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

UnitTests/Views/TabViewTests.cs

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

0 commit comments

Comments
 (0)