summaryrefslogtreecommitdiff
path: root/src/view
diff options
context:
space:
mode:
Diffstat (limited to 'src/view')
-rw-r--r--src/view/completer.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/view/completer.js b/src/view/completer.js
index 9b3e7ba3..86f746b0 100644
--- a/src/view/completer.js
+++ b/src/view/completer.js
@@ -80,10 +80,10 @@ var completer = (function (input_element, dropdown) {
// [hash] [cursor] [space/end]
completions(text.slice(hash + 1, space)).forEach(function(name) {
dropdown.append($('<div>' + name + '</div>'));
- dropdown.children().each(function (index, elem) {
- elem.onclick = function() { _applySuggestion(index); };
- input_element.focus();
- });
+ });
+ dropdown.children().each(function (index, elem) {
+ elem.onclick = function() { _applySuggestion(index); };
+ input_element.focus();
});
completion_start = hash + 1;
completion_end = space;