diff options
-rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
-rwxr-xr-x | gtk/ScintillaGTK.cxx | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index cac690226..be351123b 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -623,6 +623,10 @@ <li> On Win32 ensure page and step clicks on horizontal scroll bar do not overshoot document width. </li> + <li> + On GTK, fix bug where there were too many or too few lines when wrapping. + <a href="https://sourceforge.net/p/scintilla/bugs/2349/">Bug #2349</a>. + </li> </ul> <h3> <a href="https://www.scintilla.org/scintilla530.zip">Release 5.3.0</a> diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index a256c484b..ec6f83058 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1786,6 +1786,12 @@ void ScintillaGTK::Resize(int width, int height) { } if (IS_WIDGET_MAPPED(PWidget(wMain))) { ChangeSize(); + } else { + const PRectangle rcTextArea = GetTextRectangle(); + if (wrapWidth != rcTextArea.Width()) { + wrapWidth = rcTextArea.Width(); + NeedWrapping(); + } } alloc.x = 0; |