fixed autocomplete cursor position

bugfix: cursor_state (no such setting) was being queried instead of
state_cursor