Browse Source

Clean up code

 + Easier to read this way.
Leo 9 years ago
parent
commit
d1c8f431f8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/command_def.ml

+ 3 - 2
src/command_def.ml

@@ -252,8 +252,9 @@ let edit =
     )
     )
     (fun { rc } n () ->
     (fun { rc } n () ->
        let rc = Lazy.force rc in
        let rc = Lazy.force rc in
-       let position = Option.value
-                        ~default:(List.length (rc.Settings_t.progs) - 1) n
+       let position =
+         Option.value n
+           ~default:(List.length (rc.Settings_t.progs) - 1)
        in
        in
        Edit_command.run ~rc position)
        Edit_command.run ~rc position)
 ;;
 ;;