OSDN Git Service

自動拾いエディタの「キーマップ定義の挿入」で、
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 22 Dec 2003 21:39:35 +0000 (21:39 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 22 Dec 2003 21:39:35 +0000 (21:39 +0000)
現在の定義内容を正しく挿入していなかった
(エスケープ文字に変換が必要な所をしていなかった)のを修正。

src/autopick.c

index 737c5cf..8c011e9 100644 (file)
@@ -4964,10 +4964,13 @@ 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);
+
        /* Insert blank action preference line */
        insert_return_code(tb);
        string_free(tb->lines_list[tb->cy]);
-       tb->lines_list[tb->cy] = string_make(format("A:%s", act));
+       tb->lines_list[tb->cy] = string_make(format("A:%s", tmp));
 
        return TRUE;
 }