summaryrefslogtreecommitdiff
path: root/lib/editor.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/editor.ml')
-rw-r--r--lib/editor.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/editor.ml b/lib/editor.ml
index 49706b4..a68c6b0 100644
--- a/lib/editor.ml
+++ b/lib/editor.ml
@@ -13,6 +13,6 @@ let find () =
let run_on file =
match find () with
| ed when String.contains ed ' ' ->
- Unix.execvp "/bin/sh" [|"/bin/sh"; "-c"; ed ^ " " ^ file|]
+ Unix.execvp "/bin/sh" [|"/bin/sh"; "-c"; ed ^ " " ^ Filename.quote file|]
| ed ->
Unix.execvp ed [|ed; file|]