From: Eli Zaretskii Date: Tue, 26 Oct 2010 18:47:19 +0000 (+0200) Subject: cmds.c: (internal_self_insert): Don't insert for negative arguments. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~449 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=84b288883d97278b28b82cebade5dd1a0f7d92a3;p=emacs.git cmds.c: (internal_self_insert): Don't insert for negative arguments. --- diff --git a/src/ChangeLog b/src/ChangeLog index abd336cfbd5..b07ccf09db7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,7 +1,7 @@ 2010-10-26 Eli Zaretskii * 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 diff --git a/src/cmds.c b/src/cmds.c index 2682e54132a..2d0814abd98 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -474,7 +474,7 @@ internal_self_insert (int c, EMACS_INT n) 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)