diff options
author | nyamatongwe <devnull@localhost> | 2005-04-13 07:12:14 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2005-04-13 07:12:14 +0000 |
commit | 868c40faa64c389421116394e30b307e436fe2a6 (patch) | |
tree | 6525819644f50d5b05475d52d0b314812b711212 | |
parent | cd25259c1b61257fbda27971fd269cbca8a5ead0 (diff) | |
download | scintilla-mirror-868c40faa64c389421116394e30b307e436fe2a6.tar.gz |
Patch from Robert to include line number in some marker notifications.
-rw-r--r-- | src/Document.cxx | 4 | ||||
-rw-r--r-- | src/Document.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 16b434083..0def97a8f 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -103,14 +103,14 @@ void Document::SetSavePoint() { int Document::AddMark(int line, int markerNum) { int prev = cb.AddMark(line, markerNum); - DocModification mh(SC_MOD_CHANGEMARKER, LineStart(line), 0, 0, 0); + DocModification mh(SC_MOD_CHANGEMARKER, LineStart(line), 0, 0, 0, line); NotifyModified(mh); return prev; } void Document::DeleteMark(int line, int markerNum) { cb.DeleteMark(line, markerNum); - DocModification mh(SC_MOD_CHANGEMARKER, LineStart(line), 0, 0, 0); + DocModification mh(SC_MOD_CHANGEMARKER, LineStart(line), 0, 0, 0, line); NotifyModified(mh); } diff --git a/src/Document.h b/src/Document.h index 1b59b1dab..3b43852f0 100644 --- a/src/Document.h +++ b/src/Document.h @@ -262,13 +262,13 @@ public: int foldLevelPrev; DocModification(int modificationType_, int position_=0, int length_=0, - int linesAdded_=0, const char *text_=0) : + int linesAdded_=0, const char *text_=0, int line_=0) : modificationType(modificationType_), position(position_), length(length_), linesAdded(linesAdded_), text(text_), - line(0), + line(line_), foldLevelNow(0), foldLevelPrev(0) {} |