aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-02-25 06:35:20 +0000
committernyamatongwe <devnull@localhost>2010-02-25 06:35:20 +0000
commitf9fa302704bccb8aa448f4124e1c4135a7b5e1a4 (patch)
tree4e9670d3660eec06fc2607b8abc0971ab3f08a89
parent48ce8d42d1f83fbd5f0fb5ee9feb020fd9039c05 (diff)
downloadscintilla-mirror-f9fa302704bccb8aa448f4124e1c4135a7b5e1a4.tar.gz
Fix for bug #2958043 Text disappears when the "wrap" option is on
-rw-r--r--src/Editor.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index f9f02788a..d09187f10 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3733,7 +3733,11 @@ void Editor::AddCharUTF(char *s, unsigned int len, bool treatAsDBCS) {
if (wrapState != eWrapNone) {
AutoSurface surface(this);
if (surface) {
- WrapOneLine(surface, pdoc->LineFromPosition(positionInsert));
+ if (WrapOneLine(surface, pdoc->LineFromPosition(positionInsert))) {
+ SetScrollBars();
+ SetVerticalScrollPos();
+ Redraw();
+ }
}
}
}