[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 134101] \2 placeholder in regular expression find-and-replace
From:       Anders Lund <anders () alweb ! dk>
Date:       2007-01-31 19:15:15
Message-ID: 20070131191515.31585.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=134101         
anders alweb dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From anders alweb dk  2007-01-31 20:15 -------
SVN commit 628866 by alund:

get the right position when inserting backreferences

BUG: 134101


 M  +1 -1      katesearch.cpp  


--- trunk/KDE/kdelibs/kate/part/katesearch.cpp #628865:628866
 @ -384,7 +384,7  @
           kDebug()<<"KateSearch::replaceOne(): you don't have "<<ccap<<" \
backreferences in regexp '"<<m_re.pattern()<<"'"<<endl;  }
       }
-      pos = br.indexIn( replaceWith, pos + qMax(br.matchedLength(), \
(int)sc.length()) ); +      pos = br.indexIn( replaceWith, pos + (int)sc.length());
     }
   }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic