                 if pattern.test(suggestion)
                     found_suggestion = true
                     @current_suggestions.push suggestion
-                    @.$('.suggestion_name_list').append @template_suggestion_name 
+                    @.$('.suggestion_name_list').append @template_suggestion_name
                         id: i
                         suggestion: suggestion
 
             if found_suggestion
                 @show_suggestion()
+                return true
             else
                 @hide_suggestion()
-            return @
+                return false
 
         # Callback used by the cursor when the user hit 'more results'
         callback_query: (data) =>

            last_function = @extract_last_function(query)
            just_description = false # Boolean to know if we want to display just the description and not the suggestions
            # Hack in case a new parenthesis is opened. Ex: r.table('foo').filter( // We want to describe filter, not suggest r(
            if /\s*/.test(query) is true # We have an empty cursor
                last_function_full = @extract_last_function_for_description(query_before_cursor)
                if last_function_full isnt ''
                    last_function = last_function_full

                    next_non_white_character = query_after_cursor[index_next_character]
                    break
                index_next_character++
            if next_non_white_character? and next_non_white_character isnt '.' and next_non_white_character isnt ',' and next_non_white_character isnt ')' and next_non_white_character isnt ';'
                @hide_suggestion()
                last_function_for_description = @extract_last_function_for_description(query_before_cursor)
                if last_function_for_description isnt ''
