Parcourir la source

Clean up code

 + Easier to read this way.
Leo il y a 9 ans
Parent
commit
d1c8f431f8
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      src/command_def.ml

+ 3 - 2
src/command_def.ml

@@ -252,8 +252,9 @@ let edit =
     )
     (fun { rc } n () ->
        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
        Edit_command.run ~rc position)
 ;;