changeset 111194:692eb4db341f

cmds.c: (internal_self_insert): Don't insert for negative arguments.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 26 Oct 2010 20:47:19 +0200
parents e9767f86681c
children bad8d0e56e0f
files src/ChangeLog src/cmds.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Oct 26 20:03:34 2010 +0200
+++ b/src/ChangeLog	Tue Oct 26 20:47:19 2010 +0200
@@ -1,7 +1,7 @@
 2010-10-26  Eli Zaretskii  <eliz@gnu.org>
 
 	* cmds.c (internal_self_insert): Don't insert if argument N is
-	zero.  (Bug#7281)
+	zero or negative.  (Bug#7281)
 
 2010-10-26  Jan Djärv  <jan.h.d@swipnet.se>
 
--- a/src/cmds.c	Tue Oct 26 20:03:34 2010 +0200
+++ b/src/cmds.c	Tue Oct 26 20:47:19 2010 +0200
@@ -474,7 +474,7 @@
       insert_and_inherit (strn, p - strn);
       SAFE_FREE ();
     }
-  else if (n)
+  else if (n > 0)
     insert_and_inherit (str, len);
 
   if ((CHAR_TABLE_P (Vauto_fill_chars)