Commit 5d335d4b authored by Glenn Morris's avatar Glenn Morris
Browse files

* src/cmds.c (Fself_insert_command): Allow zero repeat count.

Fixes: debbugs:17649
parent b701ac49
2014-05-31 Glenn Morris <rgm@gnu.org>
* cmds.c (Fself_insert_command): Allow zero repeat count. (Bug#17649)
2014-05-30 Paul Eggert <eggert@cs.ucla.edu>
Fix port to 32-bit AIX with xlc (Bug#17598).
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment