Skip to content

Commit adc36e3

Browse files
committed
Change provider to take minimumWordLength into account
1 parent ed62b05 commit adc36e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/paths-provider.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class PathsProvider
1818
return [] unless basePath?
1919

2020
prefix = @prefixForCursor(options.editor, options.buffer, options.cursor, options.position)
21-
return [] unless prefix.length
21+
22+
return [] unless prefix.length > atom.config.get('autocomplete-plus.minimumWordLength')
2223

2324
suggestions = @findSuggestionsForPrefix(options.editor, basePath, prefix)
2425
return [] unless suggestions.length

0 commit comments

Comments
 (0)