aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-06-08 09:18:36 +0000
committernyamatongwe <unknown>2006-06-08 09:18:36 +0000
commit8cfc2628fa3c947485aec2b2b88c0f784328415b (patch)
tree4320f41339f8315165217d842efe57295241383c /src/Editor.h
parent431b0992d1661937b920ff9a23f327ecce883cfa (diff)
downloadscintilla-mirror-8cfc2628fa3c947485aec2b2b88c0f784328415b.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.h8
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);