diff --git a/dired-rsync.el b/dired-rsync.el index 3604750..1072a90 100644 --- a/dired-rsync.el +++ b/dired-rsync.el @@ -270,7 +270,7 @@ information and update the dired-rsync-modeline-status." (set-marker (process-mark proc) (point)) ;; Delete old text upto the newline (goto-char (point-max)) - (when (search-backward "\r") + (when (search-backward "\r" nil t) (delete-region (point-min) (+ 1 (match-beginning 0))))) (if moving (goto-char (process-mark proc))))))))