Browse files

i prefer positive logic as my brain doesn't logic dat good

  • Loading branch information...
1 parent 76eb3cd commit 5163421c7fc3813d2c62e71956b3d47b2372fed1 @markburns committed Mar 18, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/kaboom/platform.rb
View
8 lib/kaboom/platform.rb
@@ -86,11 +86,11 @@ def copy(item)
#
# Returns a String with a helpful message.
def edit(json_file)
- unless $EDITOR.nil?
- unless windows?
- system("`echo $EDITOR` #{json_file} &")
- else
+ if $EDITOR
+ if windows?
system("start %EDITOR% #{json_file}")
+ else
+ system("`echo $EDITOR` #{json_file} &")
end
else
system("#{open_command} #{json_file}")

0 comments on commit 5163421

Please sign in to comment.