Skip to content

Commit

Permalink
inf-ruby-console-default: Behave differently when 'gem "pry"' is comm…
Browse files Browse the repository at this point in the history
…ented out

dgutov/robe#147
  • Loading branch information
dgutov committed Jan 16, 2024
1 parent 8116b3b commit e7001f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inf-ruby.el
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ Return the end position of the breakpoint prompt."
(unless (file-exists-p "Gemfile")
(error "The directory must contain a Gemfile"))
(cond
((inf-ruby-file-contents-match "Gemfile" "[\"']pry[\"']")
((inf-ruby-file-contents-match "Gemfile" "^[ \t]*gem[ \t]*[\"']pry[\"']")
(inf-ruby-console-run "bundle exec pry" "pry"))
(t
(inf-ruby-console-run "bundle console" "bundle console")))))
Expand Down

0 comments on commit e7001f3

Please sign in to comment.