aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-07-26 08:08:05 +0000
committernyamatongwe <devnull@localhost>2003-07-26 08:08:05 +0000
commit47dcbdf133a64871637b33bcfd576bca3c3a4f58 (patch)
treea97b67609c1821391df2466b48262e04f8589d44 /src
parent5dcfe356280daa94d68cdeb3ae4953ca67cc44a3 (diff)
downloadscintilla-mirror-47dcbdf133a64871637b33bcfd576bca3c3a4f58.tar.gz
Patch from Yair Siegel to include the string being inserted in a
SC_MOD_BEFOREINSERT notification.
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 98fc6b330..51d52b388 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -394,7 +394,7 @@ bool Document::InsertStyledString(int position, char *s, int insertLength) {
DocModification(
SC_MOD_BEFOREINSERT | SC_PERFORMED_USER,
position / 2, insertLength / 2,
- 0, 0));
+ 0, s));
int prevLinesTotal = LinesTotal();
bool startSavePoint = cb.IsSavePoint();
const char *text = cb.InsertString(position, s, insertLength);