[hg] main-silver: Issue #205457: org.netbeans.editor.GuardedExce...

  • From: Dusan Balek < >
  • To: ,
  • Subject: [hg] main-silver: Issue #205457: org.netbeans.editor.GuardedExce...
  • Date: Wed, 10 Jul 2013 23:36:28 -0700

changeset 27770f559be1 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/27770f559be1
description:
        Issue #205457: org.netbeans.editor.GuardedException: Attempt to 
remove from guarded block at position - fixed.

diffstat:

 editor.lib/src/org/netbeans/editor/ActionFactory.java |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/editor.lib/src/org/netbeans/editor/ActionFactory.java 
b/editor.lib/src/org/netbeans/editor/ActionFactory.java
--- a/editor.lib/src/org/netbeans/editor/ActionFactory.java
+++ b/editor.lib/src/org/netbeans/editor/ActionFactory.java
@@ -1731,7 +1731,7 @@
             }
 
             if (pos < stopPos) {
-                regions.addFirst(new PositionRegion(doc, pos, stopPos));
+                regions.addFirst(new PositionRegion(doc, pos, stopPos - 1));
                 pos = stopPos;
             } else {
                 pos++; //ensure to make progress

[hg] main-silver: Issue #205457: org.netbeans.editor.GuardedExce...

Dusan Balek 07/11/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 348 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close