History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17254
Type: Bug Bug
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Dan Cioca
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Document guarded blocks do not work as expected

Created: 26 Feb 08 16:59   Updated: 26 Feb 08 22:41
Component/s: Editor. Editing Text

Build: 7,693
Severity: Medium


 Description  « Hide
have created a guarded block over the entire document.

RangeMarker rangeMarker = document.createGuardedBlock(0, document.getTextLength());
rangeMarker.setGreedyToLeft(true);
rangeMarker.setGreedyToRight(true);

I expect this document not to be editable any more.
Yet if the cursor is at the beginning or at the end of the document, I am still able to change it. The newly introduced character(s) will be part of the readonly RangeMarker, which is an additional misbehavior.



 All   Comments   Work Log   Change History      Sort Order:
Dan Cioca - 26 Feb 08 17:04
Additionally, you can edit within a guarded block via code completion by selecting the value using the mouse.
Think that code completion should not even be active if the cursor is within the range of a guarded block.