diff options
author | nyamatongwe <devnull@localhost> | 2002-03-04 09:24:20 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-03-04 09:24:20 +0000 |
commit | 36f68f123487bb30e2a1f57b3eb49e5729be24a5 (patch) | |
tree | fb7ea4c91c724e8cf91dce0a400e48247912d0a4 /src/Editor.h | |
parent | 4b837e88f5bc0a8504cf3a65c196dafbcb31fb1b (diff) | |
download | scintilla-mirror-36f68f123487bb30e2a1f57b3eb49e5729be24a5.tar.gz |
Fixed problem in wrapped mode where cursor up would not move because for
a position that was at the end of a subline, and thus also the beginning
of the next subline LocationFromPosition was favoring the end of subline.
Treat a cached wrapping as invalid if the current wrap width is different
to when the wrapping was done.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h index 8f47819b5..35aea3fc3 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -42,6 +42,7 @@ private: int lineNumber; bool inCache; public: + enum { wrapWidthInfinite = 0x7ffffff }; int maxLineLength; int numCharsInLine; enum validLevel { llInvalid, llPositions, llLines } validity; @@ -271,7 +272,6 @@ protected: // ScintillaBase subclass needs access to much of Editor // Wrapping support enum { eWrapNone, eWrapWord } wrapState; - enum { wrapWidthInfinite = 0x7ffffff }; int wrapWidth; int docLineLastWrapped; @@ -337,7 +337,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void PaintSelMargin(Surface *surface, PRectangle &rc); LineLayout *RetrieveLineLayout(int lineNumber); void LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayout *ll, - int width=wrapWidthInfinite); + int width=LineLayout::wrapWidthInfinite); void DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVisible, int xStart, PRectangle rcLine, LineLayout *ll, int subLine=0); void Paint(Surface *surfaceWindow, PRectangle rcArea); |