[hg] main-silver: #222054 - Replace all backwards does not work

  • From: Milutin Kristofic < >
  • To:
  • Subject: [hg] main-silver: #222054 - Replace all backwards does not work
  • Date: Wed, 06 Feb 2013 13:58:35 -0800

changeset 2ddadfa34838 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/2ddadfa34838
description:
        #222054 - Replace all backwards does not work

diffstat:

 editor.search/src/org/netbeans/modules/editor/search/EditorFindSupport.java 
|  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git 
a/editor.search/src/org/netbeans/modules/editor/search/EditorFindSupport.java 
b/editor.search/src/org/netbeans/modules/editor/search/EditorFindSupport.java
--- 
a/editor.search/src/org/netbeans/modules/editor/search/EditorFindSupport.java
+++ 
b/editor.search/src/org/netbeans/modules/editor/search/EditorFindSupport.java
@@ -772,7 +772,7 @@
 
                 int actualPos = wrapSearch ? 0 : c.getCaret().getDot();
 
-                int pos = (blockSearch && blockSearchStartOffset > -1) ? ( 
backSearch ? blockSearchEndOffset : blockSearchStartOffset) : (backSearch? -1 
: actualPos); // actual position
+                int pos = (blockSearch && blockSearchStartOffset > -1) ? ( 
backSearch ? blockSearchEndOffset : blockSearchStartOffset) : (backSearch? 0 
: actualPos); // actual position
 
                 while (true) {
                     blockSearchEndOffset = getBlockEndOffset();

[hg] main-silver: #222054 - Replace all backwards does not work

Milutin Kristofic 02/06/2013

Project Features

About this Project

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