Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6bf01d
)
ide:replaceInFiles: fixed line number off by one and save w/o CR ('\r')
author
Rejean Loyer
<rejean.loyer@gmail.com>
Sat, 28 May 2011 05:08:33 +0000
(
01:08
-0400)
committer
Rejean Loyer
<rejean.loyer@gmail.com>
Sun, 12 Jun 2011 06:07:00 +0000
(
02:07
-0400)
ide/src/dialogs/FindInFilesDialog.ec
patch
|
blob
|
history
diff --git
a/ide/src/dialogs/FindInFilesDialog.ec
b/ide/src/dialogs/FindInFilesDialog.ec
index
1ea3d83
..
a622640
100644
(file)
--- a/
ide/src/dialogs/FindInFilesDialog.ec
+++ b/
ide/src/dialogs/FindInFilesDialog.ec
@@
-929,7
+929,7
@@
private:
for(; edit.Find(contentCriteria, contentWholeWord, contentMatchCase, true) == found; replaceCount++)
{
- int lineNum = edit.lineNumber;
+ int lineNum = edit.lineNumber
+ 1
;
edit.PutS(contentReplace);
if(lineNum != lastLineNum)
{
@@
-962,7
+962,7
@@
private:
{
if((f = FileOpen(filePath, write)))
{
- edit.Save(f,
tru
e);
+ edit.Save(f,
fals
e);
delete f;
}
}