mirror of
https://github.com/TaKO8Ki/gobang
synced 2024-11-11 07:10:31 +00:00
add s
This commit is contained in:
parent
8cb0b12944
commit
7ea0c08a63
@ -197,7 +197,7 @@ impl Component for TableFilterComponent {
|
|||||||
|
|
||||||
// apply comletion candidates
|
// apply comletion candidates
|
||||||
if key == self.key_config.enter {
|
if key == self.key_config.enter {
|
||||||
return self.complete()
|
return self.complete();
|
||||||
}
|
}
|
||||||
|
|
||||||
self.completion.selected_candidate();
|
self.completion.selected_candidate();
|
||||||
@ -289,7 +289,7 @@ mod test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_complete_no_candidate() {
|
fn test_complete_no_candidates() {
|
||||||
let mut filter = TableFilterComponent::new(KeyConfig::default());
|
let mut filter = TableFilterComponent::new(KeyConfig::default());
|
||||||
filter.input_idx = 2;
|
filter.input_idx = 2;
|
||||||
filter.input = vec!['a', 'n', ' ', 'c', 'd', 'e', 'f', 'g'];
|
filter.input = vec!['a', 'n', ' ', 'c', 'd', 'e', 'f', 'g'];
|
||||||
|
Loading…
Reference in New Issue
Block a user