Skip to content

Commit d3c9a26

Browse files
committed
Allow user to use HeaderThroughline with HeaderOverline and HeaderUnderline even though it's a strange choice
1 parent b28d72e commit d3c9a26

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Terminal.Gui/Views/TableView/TableView.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,7 @@ public override void OnDrawContent (Rect contentArea)
347347

348348
Move (current.X, yh);
349349

350-
if (current.Width - colName.Length > 0
351-
&& Style.ShowHorizontalHeaderThroughline
352-
&& (!Style.ShowHorizontalHeaderOverline || !Style.ShowHorizontalHeaderUnderline)) {
350+
if (current.Width > colName.Length && Style.ShowHorizontalHeaderThroughline) {
353351

354352
if (colName.Sum (c => ((Rune)c).GetColumns ()) < current.Width) {
355353
Driver.AddStr (colName);
@@ -462,8 +460,7 @@ private void RenderCellLines (int width, int height, ColumnToRender [] columnsTo
462460
row++;
463461
}
464462
if (Style.ShowHeaders) {
465-
if (Style.ShowHorizontalHeaderThroughline &&
466-
(!Style.ShowHorizontalHeaderOverline || !Style.ShowHorizontalHeaderUnderline)) {
463+
if (Style.ShowHorizontalHeaderThroughline) {
467464
grid.AddLine (new Point (0, row), width, Orientation.Horizontal, Style.InnerHeaderBorderStyle);
468465
}
469466
row++;

0 commit comments

Comments
 (0)