Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: 3rdRail/Ruby and Rails Editors    [ Add a report in this area ]  
Report #:  64596   Status: Resolved
cannot delete selected text when it includes folded area
Project:  3rdRail Build #:  v20080311_0801
Version:    unspecifie Submitted By:   Olivier Lance
Report Type:  Basic functionality failure Date Reported:  7/18/2008 6:13:34 AM
Severity:    Serious / Highly visible problem Last Updated: 7/29/2008 11:43:14 AM
Platform:    All platforms Internal Tracking #:  
Resolution: As Designed (Resolution Comments) Resolved in Build: : v20080714_1148
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
In rails editor, when trying to delete a selected text, the deletion fails if the selection includes any folded comment or block of code.
Steps to Reproduce:
- Open a ruby file

- Let say it contains a two-line comment such as :

  # PUT /news/1
  # PUT /news/1.xml

- If it's unfold, fold this comment

- Make a text selection including this folded comment

- Hit backspace

- The selected text is not deleted and the folded area is unfolded

The problem shows up for any folded area, should it be a comment or a block of code.

The problem doesn't occur if you delete the text with the "delete" key.

However it's really annoying because the scaffold generation creates two-line comments for each action, which are automatically folded in the editor.
Unfold any folded area before deleting selected text, or use the "delete" key.


Use "Delete Line" command using [Ctrl+D] key binding on the folded lines.


Server Response from: ETNACODE01