Browse Source

Naively quote original vim arguments

We assume no std* / fd* hocus-pocus
Alois Mahdal 10 years ago
parent
commit
15927055a1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      bin/vim-bx

+ 1
- 1
bin/vim-bx View File

@@ -29,7 +29,7 @@ foreach (@ARGV) {
29 29
 # run vim as you would
30 30
 my $real_vim = `/usr/bin/env -i which vim`;
31 31
 chomp $real_vim;
32
-my $cmd = join ' ', $real_vim, @ARGV;
32
+my $cmd = join ' ', $real_vim, map { "\"$_\"" } @ARGV;
33 33
 system($cmd) == 0
34 34
     or warn "vim failed: $!";
35 35