             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
+            if /^\s*$/.test(query) is true or last_function is '' # 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

                    if (query[i] is '"' or query[i] is '\'')
                        is_string = true
                        char_used = query[i]
                    else if query[i] is '('
                        num_not_open_parenthesis--
                    else if query[i] is ')'

                    if last_function_for_description isnt ''
                        @add_description last_function_for_description
                else
                    could_append = @append_suggestion(query, @suggestions[@map_state[last_function]])
                    if could_append is false
                        last_function_for_description = @extract_last_function_for_description(query_before_cursor)

                        if last_function_for_description isnt ''
                            @add_description last_function_for_description
            else
                @hide_suggestion()
                last_function_for_description = @extract_last_function_for_description(query_before_cursor)
