From 5dbb04e0ebd2a007b4827138faae2ac0edc06350 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 28 Oct 2021 23:38:29 +0200 Subject: [PATCH] Make `C-u RET' work again * lisp/simple.el (newline): Fix regression introduced by d1aacceae9 (bug#51459). --- lisp/simple.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index e3657cc079e..94a459b7795 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -590,7 +590,7 @@ A non-nil INTERACTIVE argument means to run the `post-self-insert-hook'." (interactive "*P\np") (barf-if-buffer-read-only) (when (and arg - (< arg 0)) + (< (prefix-numeric-value arg) 0)) (error "Repetition argument has to be non-negative")) ;; Call self-insert so that auto-fill, abbrev expansion etc. happen. ;; Set last-command-event to tell self-insert what to insert. -- 2.39.2