From 2e652e0d9eaa867dfce6d442b80e8bc7f074a2f1 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Tue, 4 Oct 2022 12:48:46 +1100 Subject: Bug [#2349]. Fix bug where there were too many or too few lines when wrapping. --- gtk/ScintillaGTK.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gtk') 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; -- cgit v1.2.3