dgutov / robe

Code navigation, documentation lookup and completion for Ruby
584 stars 37 forks source link

Fix killing the inf-ruby process buffer #49

Closed bjpbakker closed 9 years ago

bjpbakker commented 9 years ago

Variable inf-ruby-buffer contains the name of the buffer where the inf-ruby process is running. Hence (buffer-live-p inf-ruby-buffer) always is nil.

This patch uses the buffer object with name inf-ruby-buffer.

dgutov commented 9 years ago

Right. Thanks!

dgutov commented 9 years ago

Just FYI, you've missed #51.

bjpbakker commented 9 years ago

Thanks for the heads up. Next time I'll test on a non-rails project too

dgutov commented 9 years ago

Rails or not, that wasn't the issue. Basically, robe-start failed whenever it was called while inf-ruby-buffer is nil.