Skip to content

Commit

Permalink
Don't show default open mode results with pinned query
Browse files Browse the repository at this point in the history
jmacdonald committed Nov 15, 2024
1 parent 7592582 commit 44ee981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/application/modes/open/mod.rs
Original file line number Diff line number Diff line change
@@ -185,7 +185,7 @@ impl SearchSelectMode for OpenMode {

fn search(&mut self) {
let results = if let OpenModeIndex::Complete(ref index) = self.index {
if self.input.is_empty() {
if self.input.is_empty() && self.pinned_input.is_empty() {
index
.iter()
.take(self.config.max_results)

0 comments on commit 44ee981

Please sign in to comment.