don't show autocomplete on numbers

This commit is contained in:
tophf 2017-11-25 04:30:19 +03:00
parent 3ed98cb506
commit febaefd8dc

View File

@ -1073,7 +1073,7 @@ function autocompleteOnTyping(cm, [info], debounced) {
debounce(autocompleteOnTyping, 100, cm, [info], true); debounce(autocompleteOnTyping, 100, cm, [info], true);
return; return;
} }
if (info.text.last.match(/[-\w!]+$/)) { if (info.text.last.match(/[-a-z!]+$/i)) {
cm.state.autocompletePicked = false; cm.state.autocompletePicked = false;
cm.options.hintOptions.completeSingle = false; cm.options.hintOptions.completeSingle = false;
cm.execCommand('autocomplete'); cm.execCommand('autocomplete');