diff options
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x] | public/vendor/codemirror/addon/hint/anyword-hint.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/vendor/codemirror/addon/hint/anyword-hint.js b/public/vendor/codemirror/addon/hint/anyword-hint.js index 8e74a920..dae78e2e 100755..100644 --- a/public/vendor/codemirror/addon/hint/anyword-hint.js +++ b/public/vendor/codemirror/addon/hint/anyword-hint.js @@ -21,7 +21,7 @@ while (start && word.test(curLine.charAt(start - 1))) --start; var curWord = start != end && curLine.slice(start, end); - var list = [], seen = {}; + var list = options && options.list || [], seen = {}; var re = new RegExp(word.source, "g"); for (var dir = -1; dir <= 1; dir += 2) { var line = cur.line, endLine = Math.min(Math.max(line + dir * range, editor.firstLine()), editor.lastLine()) + dir; |