Summary: | incorrect global replace -- %s///g | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Maciej Pilichowski <bluedzins> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | downloaded test file |
Description
Maciej Pilichowski
2006-06-20 17:08:28 UTC
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 |