diff options
author | nyamatongwe <unknown> | 2005-02-17 12:39:24 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-02-17 12:39:24 +0000 |
commit | 94487f5454e3bab705d63ba015b1172a21c6c469 (patch) | |
tree | e39ddb1c36217d5b6be476fd0964f42abf2fd130 /src | |
parent | 66950c7fbe5d6fbb1e4ce5aa9bf52921639904a7 (diff) | |
download | scintilla-mirror-94487f5454e3bab705d63ba015b1172a21c6c469.tar.gz |
Fix for bug 1110111 by moving end of styling to first argument if it is
currently after the argument.
Diffstat (limited to 'src')
-rw-r--r-- | src/Document.h | 4 | ||||
-rw-r--r-- | src/ScintillaBase.cxx | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/Document.h b/src/Document.h index ce27ffc47..f2fcc7c69 100644 --- a/src/Document.h +++ b/src/Document.h @@ -134,6 +134,7 @@ public: int MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd=true); // Gateways to modifying document + void ModifiedAt(int pos); bool DeleteChars(int pos, int len); bool InsertStyledString(int position, char *s, int insertLength); int Undo(); @@ -237,7 +238,6 @@ private: bool IsWordStartAt(int pos); bool IsWordEndAt(int pos); bool IsWordAt(int start, int end); - void ModifiedAt(int pos); void NotifyModifyAttempt(); void NotifySavePoint(bool atSavePoint); @@ -271,7 +271,7 @@ public: foldLevelNow(0), foldLevelPrev(0) {} - DocModification(int modificationType_, const Action &act, int linesAdded_=0) : + DocModification(int modificationType_, const Action &act, int linesAdded_=0) : modificationType(modificationType_), position(act.position / 2), length(act.lenData), diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 6377eac3e..78c15f7d7 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -617,6 +617,7 @@ sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPara case SCI_COLOURISE: if (lexLanguage == SCLEX_CONTAINER) { + pdoc->ModifiedAt(wParam); NotifyStyleToNeeded((lParam == -1) ? pdoc->Length() : lParam); } else { Colourise(wParam, lParam); |