Permalink
Browse files

• Use quoted paths in arguments to vi and mate.

  There are no tests for these commands, and we don’t want to start editors, so...
  • Loading branch information...
1 parent bd6550a commit 0c34b72bc5f8d1c53bcf88ba848c53efc47a9a42 @mkhl mkhl committed with Jan 25, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rush/commands.rb
@@ -43,13 +43,13 @@ def line_count
# Invoke vi on one or more files - only works locally.
def vi(*args)
- names = entries.map { |f| f.full_path }.join(' ')
+ names = entries.map { |f| f.quoted_path }.join(' ')
system "vim #{names} #{args.join(' ')}"
end
# Invoke TextMate on one or more files - only works locally.
def mate(*args)
- names = entries.map { |f| f.full_path }.join(' ')
+ names = entries.map { |f| f.quoted_path }.join(' ')
system "mate #{names} #{args.join(' ')}"
end
end

0 comments on commit 0c34b72

Please sign in to comment.