Skip to content

Commit 5120ce2

Browse files
authored
Merge pull request #101 from MoritzKn/master
Change provider to take minimumWordLength into account
2 parents cf8a53a + 293ae96 commit 5120ce2

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)