Skip to content

Commit

Permalink
Merge pull request #5286 from yaroslav-tykhonchuk/fix-trigger-autocom…
Browse files Browse the repository at this point in the history
…plete

fix: autocompletion threshold doesn't apply to trigger characters
  • Loading branch information
nightwing authored Aug 21, 2023
2 parents 2ab6454 + 84bbc88 commit eb1340e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ext/language_tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ var showLiveAutocomplete = function(e) {
var prefix = util.getCompletionPrefix(editor);
// Only autocomplete if there's a prefix that can be matched or previous char is trigger character
var triggerAutocomplete = util.triggerAutocomplete(editor);
if ((prefix || triggerAutocomplete) && prefix.length >= editor.$liveAutocompletionThreshold) {
if (prefix && prefix.length >= editor.$liveAutocompletionThreshold || triggerAutocomplete) {
var completer = Autocomplete.for(editor);
// Set a flag for auto shown
completer.autoShown = true;
Expand Down

0 comments on commit eb1340e

Please sign in to comment.