RubyMine 2.0 (OSX) backspace/delete is broken

Using RubyMine 2.0 has been a positive experience thusfar - except for how it handles delete on an empty line which I believe is broken as it did not behave this way in 1.x.  If there is a setting to restore the old behavior, I'd certainly appreciate knowing it - otherwise, it seems like a bug I hope is fixed.  Here is some sample code that hopefully illustrates the problem:

   some code
   |

   some more code


Each line is indented with three spaces, no tabs.  The vertical bar (|) represents the cursor.  When I press delete once, it deletes all of the indentation and then some.  The result looks like this:

   some code
|   some more code


(Again, the cursor is represented by the vertical bar - in RubyMine the resulting second line is actually indented four spaces.)  It has "assisted" me by deleting all three spaces but somehow grabbed the newline and gotten rid of that as well - bringing the second line of text up at an odd indentation.  In RubyMine 1.x, I would press delete four times - three for the spaces and one more to get rid of the empty line.  I have to move the cursor over to delete the extraneous space - but more often than not my old habit is to press delete a couple of times and as a result, I end up with something like this

   some code   |some more code


Is there any way to restore the RubyMine 1.x behavior?  I want my spaces treated like spaces and not be "assisted" when I press delete on a line with nothing but spaces.  I've looked through the preferences but haven't been able to find one that controls this behavior.

Thanks in advance!
Jeffrey

2 comments
Comment actions Permalink

Hi Jeffrey,

Using RubyMine 2.0 has been a positive experience thusfar - except for how it handles delete on an empty line which I believe is broken as it did not behave this way in 1.x.  If there is a setting to restore the old behavior, I'd certainly appreciate knowing it - otherwise, it seems like a bug I hope is fixed.  Here is some sample code that hopefully illustrates the problem:

   some code
   |

   some more code


Each line is indented with three spaces, no tabs.  The vertical bar (|) represents the cursor.  When I press delete once, it deletes all of the indentation and then some.  The result looks like this:

   some code
|   some more code


(Again, the cursor is represented by the vertical bar - in RubyMine the resulting second line is actually indented four spaces.)  It has "assisted" me by deleting all three spaces but somehow grabbed the newline and gotten rid of that as well - bringing the second line of text up at an odd indentation.  In RubyMine 1.x, I would press delete four times - three for the spaces and one more to get rid of the empty line.  I have to move the cursor over to delete the extraneous space - but more often than not my old habit is to press delete a couple of times and as a result, I end up with something like this

   some code   |some more code


Is there any way to restore the RubyMine 1.x behavior?  I want my spaces treated like spaces and not be "assisted" when I press delete on a line with nothing but spaces.  I've looked through the preferences but haven't been able to find one that controls this behavior.

Thanks in advance!
Jeffrey

I've managed to reproduce this bug. Fix will be available in next public version.
Thanks for the issue!

Regards,
Oleg

0
Comment actions Permalink

Oleg, thanks for finding and fixing the problem.  I'm looking forward to the next release.  Cheers!

0

Please sign in to leave a comment.