OSDN Git Service

Macro Triggerのコード、最近書き変えたときにうっかりshift key付きの方のkey codeの扱いを間違えていたので修正。簡単愚より。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 13 Feb 2003 22:11:41 +0000 (22:11 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 13 Feb 2003 22:11:41 +0000 (22:11 +0000)
src/files.c

index 81563ce..81198d0 100644 (file)
@@ -783,8 +783,15 @@ errr process_pref_file_command(char *buf)
                        /* Get the corresponding key code */
                        macro_trigger_keycode[0][m] = string_make(zz[1]);
 
-                       /* Key code of a combination of it with the shift key */
-                       macro_trigger_keycode[1][m] = string_make(zz[2]);
+                       if (tok == 3)
+                       {
+                               /* Key code of a combination of it with the shift key */
+                               macro_trigger_keycode[1][m] = string_make(zz[2]);
+                       }
+                       else
+                       {
+                               macro_trigger_keycode[1][m] = string_make(zz[1]);
+                       }
                }
 
                /* No error */