                 start_line_index = 0
             else
                 start_line_index += 1
+            
+            ch = (@query_first_part + @current_completed_query + suggestion_to_write).length - start_line_index
+            if event.target.dataset.has_argument is true
+                ch--
 
             @cursor =
                 line: saved_cursor.line
-                ch: (@query_first_part + @current_completed_query + suggestion_to_write).length - start_line_index
+                ch: ch
 
             setTimeout @position_cursor_after_click, 1 # Ugliest hack ever.
 

                {
                    suggestion: 'r'
                    description : 'The main ReQL namespace'
                }
                {
                    suggestion: 'r('
                    description : 'Variable'
                }

                {
                    suggestion: 'R('
                    description : 'Attribute Selector'
                }
            ]
            expr: [
                {
                    suggestion: 'add('
                    description: 'add( expression )'
                }
                {
                    suggestion: 'sub('
                    description: 'sub( expression )'
                }
                {
                    suggestion: 'mul('
                    description: 'mul( expression )'
                }
                {
                    suggestion: 'div('
                    description: 'div( expression )'
                }
                {
                    suggestion: 'mod('
                    description: 'mod( expression )'
                }
                {
                    suggestion: 'eq('
                    description: 'eq( expression )'
                }
                {
                    suggestion: 'ne('
                    description: 'ne( expression )'
                }
                {
                    suggestion: 'lt('
                    description: 'lt( expression )'
                }
                {
                    suggestion: 'le('
                    description: 'le( expression )'
                }
                {
                    suggestion: 'gt('
                    description: 'gt( expression )'
                }
                {
                    suggestion: 'ge('
                    description: 'ge( expression )'
                }
                {
                    suggestion: 'not('
                    description: 'not( expression )'
                }
                {
                    suggestion: 'and('
                    description: 'and( expression )'
                }
                {
                    suggestion: 'or('
                    description: 'or( expression )'
                }

            ]

            query = query_before_cursor.slice slice_index
            
            @query_first_part = query_before_cursor.slice 0, slice_index
            # We might want to use tab to move faster (like w in vim)
            @query_last_part = query_after_cursor #.slice slice_position

            last_function = @extract_last_function(query)
