Add warning & Lock

Also libedit doesn't support rl_replace_line