This repository was archived by the owner on Jun 24, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
src/Microsoft.PowerShell.ConsoleGuiTools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 <PackageVersion Include =" Microsoft.PowerShell.SDK" Version =" 7.5.4" />
44 <PackageVersion Include =" Newtonsoft.Json" Version =" 13.0.4" />
55 <PackageVersion Include =" System.Management.Automation" Version =" 7.5.4" />
6- <PackageVersion Include =" Terminal.Gui" Version =" 2.0.0-rc.3 " />
6+ <PackageVersion Include =" Terminal.Gui" Version =" 2.0.1 " />
77 <!-- Test dependencies -->
88 <PackageVersion Include =" Microsoft.NET.Test.Sdk" Version =" 17.12.0" />
99 <PackageVersion Include =" xunit" Version =" 2.9.3" />
Original file line number Diff line number Diff line change @@ -135,9 +135,9 @@ private void ApplyFilter()
135135 {
136136 // Save the currently selected row's original index so we can restore position
137137 int ? selectedOriginalIndex = null ;
138- if ( _filteredDataSource != null && _tableView is { SelectedRow : >= 0 } &&
139- _tableView . SelectedRow < _filteredDataSource . Rows )
140- selectedOriginalIndex = _filteredDataSource . GetOriginalObjectIndex ( _tableView . SelectedRow ) ;
138+ if ( _filteredDataSource != null && _tableView is { Value . Cursor . Y : >= 0 } &&
139+ _tableView . Value . Cursor . Y < _filteredDataSource . Rows )
140+ selectedOriginalIndex = _filteredDataSource . GetOriginalObjectIndex ( _tableView . Value . Cursor . Y ) ;
141141
142142 try
143143 {
You can’t perform that action at this time.
0 commit comments