From 84b288883d97278b28b82cebade5dd1a0f7d92a3 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 26 Oct 2010 20:47:19 +0200 Subject: [PATCH] cmds.c: (internal_self_insert): Don't insert for negative arguments. --- src/ChangeLog | 2 +- src/cmds.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5