Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BasicEditor: fix `edit` subcommand

Fix theme creation functionality.
  • Loading branch information...
commit 377cbae8379f6b9dbd0b0a3068207489a26eb106 1 parent 2f47739
@kyrylo authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/pry-theme/basic_editor.rb
View
3  lib/pry-theme/basic_editor.rb
@@ -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) }"
@@ -39,8 +40,6 @@ def start_editing
reload_theme!
output_dashy_header("Edited \"#@filename\"")
- ensure
- @current_file.close
end
private
Please sign in to comment.
Something went wrong with that request. Please try again.