changeset 111193:e9767f86681c

Fix bug #7281. cmds.c (internal_self_insert): Don't insert if argument N is zero.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 26 Oct 2010 20:03:34 +0200
parents a514b8e891c0
children 692eb4db341f
files src/ChangeLog src/cmds.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Oct 26 09:56:11 2010 -0700
+++ b/src/ChangeLog	Tue Oct 26 20:03:34 2010 +0200
@@ -1,3 +1,8 @@
+2010-10-26  Eli Zaretskii  <eliz@gnu.org>
+
+	* cmds.c (internal_self_insert): Don't insert if argument N is
+	zero.  (Bug#7281)
+
 2010-10-26  Jan Djärv  <jan.h.d@swipnet.se>
 
 	* gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
--- a/src/cmds.c	Tue Oct 26 09:56:11 2010 -0700
+++ b/src/cmds.c	Tue Oct 26 20:03:34 2010 +0200
@@ -453,7 +453,7 @@
 		 && SINGLE_BYTE_CHAR_P (c))
 		? UNIBYTE_TO_CHAR (c) : c);
       Lisp_Object string = Fmake_string (make_number (n), make_number (mc));
-					  
+
       if (spaces_to_insert)
 	{
 	  tem = Fmake_string (make_number (spaces_to_insert),
@@ -474,7 +474,7 @@
       insert_and_inherit (strn, p - strn);
       SAFE_FREE ();
     }
-  else
+  else if (n)
     insert_and_inherit (str, len);
 
   if ((CHAR_TABLE_P (Vauto_fill_chars)