aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-12-26 02:22:43 +0000
committernyamatongwe <unknown>2001-12-26 02:22:43 +0000
commitf2f3a9292426bbc5c2fb229a398c8ea9418e7ff6 (patch)
tree12154f5d7923f77826ca751a9247d3d616d7a6cd /src
parent375a5777de3f57b5478ab3aa7891a22d99027656 (diff)
downloadscintilla-mirror-f2f3a9292426bbc5c2fb229a398c8ea9418e7ff6.tar.gz
When a paint is abandoned because there is a change in styling outside the
painting rectangle, and line wrapping is on, the needWrap flag is set because the restyled text may be thinner or thicker and hence require different wrapping.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 0ac540307..abdd46fdd 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1524,6 +1524,9 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) {
// Either styling or NotifyUpdateUI noticed that painting is needed
// outside the current painting rectangle
//Platform::DebugPrintf("Abandoning paint\n");
+ if (wrapState != eWrapNone) {
+ needWrap = true;
+ }
return;
}
//Platform::DebugPrintf("start display %d, offset = %d\n", pdoc->Length(), xOffset);