aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-12-26 02:22:43 +0000
committernyamatongwe <devnull@localhost>2001-12-26 02:22:43 +0000
commitb506b7d33b1f8372f6c1cdaf9490dd7338354ef1 (patch)
tree12154f5d7923f77826ca751a9247d3d616d7a6cd /src
parent15501820714c93449b8b88f7558b956a5b434e86 (diff)
downloadscintilla-mirror-b506b7d33b1f8372f6c1cdaf9490dd7338354ef1.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);