From 5d335d4bd6ffae58f465a09dcb23a88d7f490e86 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 30 May 2014 19:53:29 -0700 Subject: * src/cmds.c (Fself_insert_command): Allow zero repeat count. Fixes: debbugs:17649 --- src/cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmds.c') diff --git a/src/cmds.c b/src/cmds.c index 7459908828d..1a510afa271 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -280,8 +280,8 @@ At the end, it runs `post-self-insert-hook'. */) bool remove_boundary = 1; CHECK_NUMBER (n); - if (XFASTINT (n) < 1) - error ("Nonpositive repetition argument %"pI"d", XFASTINT (n)); + if (XFASTINT (n) < 0) + error ("Negative repetition argument %"pI"d", XFASTINT (n)); if (!EQ (Vthis_command, KVAR (current_kboard, Vlast_command))) nonundocount = 0; -- cgit v1.2.3