Keep undo list after occur or unsuccessful line search.