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

List:       kde-commits
Subject:    kdelibs/kate/part
From:       Christoph Cullmann <crossfire () babylon2k ! de>
Date:       2003-11-23 16:10:15
[Download RAW message or body]

CVS commit by cullmann: 

make s/sdf/sdf/gi work again as s /sdf/sfd/gi, needs a space behind the s to work \
with the new introduced matching some months ago


  M +3 -3      katecmds.cpp   1.28


--- kdelibs/kate/part/katecmds.cpp  #1.27:1.28
@@ -334,5 +334,5 @@ bool KateCommands::SedReplace::exec (Kat
   kdDebug(13010)<<"SedReplace::execCmd()"<<endl;
 
-  if (QRegExp("[$%]?s/.+/.*/[ig]*").search(cmd, 0)==-1)
+  if (QRegExp("[$%]?s /.+/.*/[ig]*").search(cmd, 0)==-1)
     return false;
 
@@ -343,5 +343,5 @@ bool KateCommands::SedReplace::exec (Kat
 
 
-  QRegExp splitter("^[$%]?s/((?:[^\\\\/]|\\\\.)*)/((?:[^\\\\/]|\\\\.)*)/[ig]*$");
+  QRegExp splitter("^[$%]?s /((?:[^\\\\/]|\\\\.)*)/((?:[^\\\\/]|\\\\.)*)/[ig]*$");
   if (splitter.search(cmd)<0) return false;
 


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

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