torsten / execute-as-ruby

Atom package to execute the current selection ad Ruby code.
https://atom.io/packages/execute-as-ruby
MIT License
6 stars 4 forks source link

Put results after the selection #3

Closed sidapa closed 6 years ago

sidapa commented 10 years ago

When selecting from bottom to top, the results gets inserted after the end of the first line. This moves the cursor back to the end of the selection.

torsten commented 9 years ago

@sidapa thanks for the PR, I tested your change but the result was inserted in the middle when the selection spanned multiple lines.

However, I now switched to getSelectedBufferRange & setCursorBufferPosition to be compatible with Atom 1.0.0. I can't reproduce the issue there anymore, can you confirm that?