From d2bcc10193b97d3f4fea9ca00842f0c01d5b3b65 Mon Sep 17 00:00:00 2001 From: tznind Date: Sat, 5 Nov 2022 09:33:59 +0000 Subject: [PATCH] Removed TabRowView.PositionCursor as we no longer show cursor --- Terminal.Gui/Views/TabView.cs | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/Terminal.Gui/Views/TabView.cs b/Terminal.Gui/Views/TabView.cs index 8c0905b30..1baf85993 100644 --- a/Terminal.Gui/Views/TabView.cs +++ b/Terminal.Gui/Views/TabView.cs @@ -466,33 +466,6 @@ namespace Terminal.Gui { Width = Dim.Fill (); } - /// - /// Positions the cursor at the start of the currently selected tab - /// - public override void PositionCursor () - { - base.PositionCursor (); - - var selected = host.CalculateViewport (Bounds).FirstOrDefault (t => Equals (host.SelectedTab, t.Tab)); - - if (selected == null) { - return; - } - - int y; - - if (host.Style.TabsOnBottom) { - y = 1; - } else { - y = host.Style.ShowTopLine ? 1 : 0; - } - - Move (selected.X, y); - - - - } - public override bool OnEnter (View view) { Driver.SetCursorVisibility (CursorVisibility.Invisible);