changeset 25409:54f9e0e764fd

Fix indent for last commit.
author ulion
date Mon, 17 Dec 2007 15:01:14 +0000
parents f73887cc6b45
children 38ef388859a9
files libmenu/menu.c
diffstat 1 files changed, 15 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu.c	Mon Dec 17 14:58:46 2007 +0000
+++ b/libmenu/menu.c	Mon Dec 17 15:01:14 2007 +0000
@@ -143,22 +143,22 @@
           if(r == 0)
             break;
           if (!strcasecmp(element, "binding")) {
-          key = asx_get_attrib("key",attribs);
-          cmd = asx_get_attrib("cmd",attribs);
-          if (key && (keycode = mp_input_get_key_from_name(key)) >= 0) {
-            keycode &= ~MP_NO_REPEAT_KEY;
-            mp_msg(MSGT_GLOBAL,MSGL_V,
-                   "[libmenu] got keybinding element %d %s=>[%s].\n",
-                   keycode, key, cmd ? cmd : "");
-            bindings->bindings = realloc(bindings->bindings,
+            key = asx_get_attrib("key",attribs);
+            cmd = asx_get_attrib("cmd",attribs);
+            if (key && (keycode = mp_input_get_key_from_name(key)) >= 0) {
+              keycode &= ~MP_NO_REPEAT_KEY;
+              mp_msg(MSGT_GLOBAL,MSGL_V,
+                     "[libmenu] got keybinding element %d %s=>[%s].\n",
+                     keycode, key, cmd ? cmd : "");
+              bindings->bindings = realloc(bindings->bindings,
                                    (bindings->binding_num+1)*sizeof(key_cmd_t));
-            bindings->bindings[bindings->binding_num].key = keycode;
-            bindings->bindings[bindings->binding_num].cmd = cmd;
-            ++bindings->binding_num;
-          }
-          else
-            free(cmd);
-          free(key);
+              bindings->bindings[bindings->binding_num].key = keycode;
+              bindings->bindings[bindings->binding_num].cmd = cmd;
+              ++bindings->binding_num;
+            }
+            else
+              free(cmd);
+            free(key);
           }
           free(element);
           asx_free_attribs(attribs);