Version: (using KDE KDE 3.5.2) Installed from: SuSE RPMs I try to replace all the | by newlines. The attached file has 175 occurrences of | however kate at first can find only 170 of them. Try this at the command line: %s/\|/\n/g once, and then again. Attached file is a plain text file, encodings -- CodePage1250.
Created attachment 16716 [details] downloaded test file
"175 replacements made" Worked just fine here (r548000).
Here it only finds 150 (KDE 3.5.3).
How can I find out what r-number I have?
confirmed in kde 4.4. it seems like it gets confused by new lines being added. a simpler test case: foo foo foo %s/foo/bar/g will only replace the two occurrences on the first line, and not touch the second line (which will be the fourth line after replacing the two “foo”s on the first line)
SVN commit 1090796 by ehamberg: take added lines into account when replacing a pattern with newline(s) BUG: 129494 M +10 -2 katecmds.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1090796
SVN commit 1090936 by ehamberg: backport of 1090796: take added lines into account when replacing a pattern with newline(s) CCBUG: 129494 M +10 -2 katecmds.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1090936