diff options
author | nyamatongwe <devnull@localhost> | 2006-06-08 09:18:36 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-06-08 09:18:36 +0000 |
commit | b051cde6c2fcd769f3b12eaa87d034664be5df13 (patch) | |
tree | 4320f41339f8315165217d842efe57295241383c /src/Editor.h | |
parent | 48507235cef80220d7596a6e1d62ceab565b2dcb (diff) | |
download | scintilla-mirror-b051cde6c2fcd769f3b12eaa87d034664be5df13.tar.gz |
Simplified wrapping code may fix the bug where caret disappears when
text is not wide enough to cause wrap before styling but is after styling.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Editor.h b/src/Editor.h index 282874be7..5799b4110 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -305,10 +305,10 @@ protected: // ScintillaBase subclass needs access to much of Editor // Wrapping support enum { eWrapNone, eWrapWord, eWrapChar } wrapState; - bool backgroundWrapEnabled; + enum { wrapLineLarge = 0x7ffffff }; int wrapWidth; - int docLineLastWrapped; - int docLastLineToWrap; + int wrapStart; + int wrapEnd; int wrapVisualFlags; int wrapVisualFlagsLocation; int wrapVisualStartIndent; @@ -377,7 +377,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void InvalidateCaret(); virtual void UpdateSystemCaret(); - void NeedWrapping(int docLineStartWrapping = 0, int docLineEndWrapping = 0x7ffffff); + void NeedWrapping(int docLineStart = 0, int docLineEnd = wrapLineLarge); bool WrapLines(bool fullWrap, int priorityWrapLineStart); void LinesJoin(); void LinesSplit(int pixelWidth); |