Skip to content

Commit 8d33582

Browse files
committed
trim file path on Start Search
1 parent e413a58 commit 8d33582

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GitContentSearch.UI/ViewModels/MainWindowViewModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,9 @@ private void StartSearch()
499499
return;
500500
}
501501

502+
// Trim leading slash if present, as it's meant to be relative to the git repository
503+
FilePath = FilePath.TrimStart('/');
504+
502505
IsSearching = true;
503506
IsLocating = false; // Ensure IsLocating is reset when starting a search
504507
IsProcessingCommand = true; // Set to true when starting a command

0 commit comments

Comments
 (0)