Skip to content

Commit

Permalink
BasicEditor: fix edit subcommand
Browse files Browse the repository at this point in the history
Fix theme creation functionality.
  • Loading branch information
kyrylo committed Mar 26, 2013
1 parent 2f47739 commit 377cbae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/pry-theme/basic_editor.rb
Expand Up @@ -29,6 +29,7 @@ def start_editing
if @new_theme
@output.puts 'Created a new theme.'
@current_file.puts template
@current_file.close
end
@output.puts "Opened in #{ @editor }: #{ themify(@filename) }"

Expand All @@ -39,8 +40,6 @@ def start_editing

reload_theme!
output_dashy_header("Edited \"#@filename\"")
ensure
@current_file.close
end

private
Expand Down

0 comments on commit 377cbae

Please sign in to comment.