don't show autocomplete on numbers
This commit is contained in:
parent
3ed98cb506
commit
febaefd8dc
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user