Skip to content

Commit 84bbc88

Browse files
committedAug 21, 2023
fix: autocompletion threshold doesn't apply to trigger characters
1 parent 2ab6454 commit 84bbc88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/ext/language_tools.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ var showLiveAutocomplete = function(e) {
162162
var prefix = util.getCompletionPrefix(editor);
163163
// Only autocomplete if there's a prefix that can be matched or previous char is trigger character
164164
var triggerAutocomplete = util.triggerAutocomplete(editor);
165-
if ((prefix || triggerAutocomplete) && prefix.length >= editor.$liveAutocompletionThreshold) {
165+
if (prefix && prefix.length >= editor.$liveAutocompletionThreshold || triggerAutocomplete) {
166166
var completer = Autocomplete.for(editor);
167167
// Set a flag for auto shown
168168
completer.autoShown = true;

0 commit comments

Comments
 (0)
Please sign in to comment.