Fix: autocomplete should use changes event

This commit is contained in:
eight 2017-09-18 07:33:07 +08:00
parent aed3698c74
commit 90ca2f2d23

View File

@ -1037,7 +1037,7 @@ function toggleSectionHeight(cm) {
function setupAutocomplete(cm, enable = true) {
const onOff = enable ? 'on' : 'off';
cm[onOff]('change', autocompleteOnTyping);
cm[onOff]('changes', autocompleteOnTyping);
cm[onOff]('pick', autocompletePicked);
}