Skip to content

Commit

Permalink
Treat input as '' if None
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Jan 5, 2024
1 parent 6a0fe0f commit 8e3fb44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/menu/columnar_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ impl Menu for ColumnarMenu {
self.values = completer.complete(input, start + input.len());

Check warning on line 533 in src/menu/columnar_menu.rs

View check run for this annotation

Codecov / codecov/patch

src/menu/columnar_menu.rs#L533

Added line #L533 was not covered by tests
self.reset_position();
}
} else {
self.values = completer.complete("", editor.insertion_point());

Check warning on line 537 in src/menu/columnar_menu.rs

View check run for this annotation

Codecov / codecov/patch

src/menu/columnar_menu.rs#L536-L537

Added lines #L536 - L537 were not covered by tests
}
} else {
// If there is a new line character in the line buffer, the completer
Expand Down

0 comments on commit 8e3fb44

Please sign in to comment.