Fix ledit_delete_node() and implement ledit_replace_line()