made automatic adding of prefixes more robust (only add it when curser is after ':')