post-merge fixes, the new keybindings stuff made it messy

This commit is contained in:
Michael Telatynski 2021-05-11 11:14:21 +01:00
parent 60d3da2441
commit 60e7089c77
4 changed files with 52 additions and 55 deletions

View file

@ -64,7 +64,8 @@ export default class AutocompleteWrapperModel {
return ac && ac.countCompletions() > 0;
}
public onEnter() {
public async confirmCompletion() {
await this.getAutocompleterComponent().onConfirmCompletion();
this.updateCallback({close: true});
}
@ -76,9 +77,6 @@ export default class AutocompleteWrapperModel {
if (acComponent.countCompletions() === 0) {
// Force completions to show for the text currently entered
await acComponent.forceComplete();
} else {
await acComponent.onConfirmCompletion();
this.updateCallback({close: true});
}
}