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

List:       kde-commits
Subject:    KDE/kdelibs/kate/utils
From:       Sebastian Pipping <webmaster () hartwork ! org>
Date:       2008-10-30 23:10:00
Message-ID: 1225408200.173144.25033.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 878003 by sping:

Quick fix allowing to replace the whole selection when searching with <Selection only> turned on
BUG: 173833

 M  +1 -1      katesearchbar.cpp  


--- trunk/KDE/kdelibs/kate/utils/katesearchbar.cpp #878002:878003
@@ -765,7 +765,7 @@
     SmartRange * afterReplace = NULL;
     if (match.isValid()) {
         // Previously selected match again?
-        if (selected && !selectionOnly && (match == selection)) {
+        if (selected && (match == selection) && (!selectionOnly || replace)) {
             // Same match again
             if (replace) {
                 // Selection is match -> replace
[prev in list] [next in list] [prev in thread] [next in thread] 

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