From 2f7105302fd47dc64bd31e75ce88d6429b4bacad Mon Sep 17 00:00:00 2001 From: mogami Date: Thu, 22 Jan 2004 10:34:39 +0000 Subject: [PATCH] =?utf8?q?=E8=87=AA=E5=8B=95=E6=8B=BE=E3=81=84=E3=82=A8?= =?utf8?q?=E3=83=87=E3=82=A3=E3=82=BF=E3=81=AE=E3=82=AD=E3=83=BC=E3=83=9E?= =?utf8?q?=E3=83=83=E3=83=97=E5=AE=9A=E7=BE=A9=E6=8C=BF=E5=85=A5=E3=81=A7?= =?utf8?q?=E3=80=81=E7=8F=BE=E5=9C=A8=E6=9C=AA=E5=AE=9A=E7=BE=A9=E3=81=AA?= =?utf8?q?=E3=82=AD=E3=83=BC=E3=82=92=E6=8C=BF=E5=85=A5=E3=81=97=E3=82=88?= =?utf8?q?=E3=81=86=E3=81=A8=E3=81=97=E3=81=9F=E6=99=82=E3=81=AB=20?= =?utf8?q?=E3=82=AF=E3=83=A9=E3=83=83=E3=82=B7=E3=83=A5=E3=81=97=E3=81=A6?= =?utf8?q?=E3=81=84=E3=81=9F=E3=83=90=E3=82=B0=E4=BF=AE=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/autopick.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/autopick.c b/src/autopick.c index 189ef081d..377be8dc2 100644 --- a/src/autopick.c +++ b/src/autopick.c @@ -5084,8 +5084,17 @@ static bool insert_keymap_line(text_body_type *tb) /* Look up the keymap */ act = keymap_act[mode][(byte)(buf[0])]; - /* Analyze the current action */ - ascii_to_text(tmp, act); + if (act) + { + /* Analyze the current action */ + ascii_to_text(tmp, act); + } + else + { + /* No keymap defined -- Use trigger key itself as a default */ + + /* Nothing to do (use tmp) */ + } /* Insert blank action preference line */ insert_return_code(tb); -- 2.11.0