aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-07-24 08:57:13 +1000
committerNeil <nyamatongwe@gmail.com>2018-07-24 08:57:13 +1000
commitc24d446bbfb5249e6db816d457d43ce5f5ea5ae1 (patch)
tree5f5e992505402a96561450e1d1af9b5c52f8686d /src
parent541dd48f9c4c51aeba30cd35389f2174e9b255bd (diff)
downloadscintilla-mirror-c24d446bbfb5249e6db816d457d43ce5f5ea5ae1.tar.gz
Backport: Fix reversion in revision 7063 which removed folding when changing code page.
Changing code page now causes full restyle. Backport of changeset 7068:00b787e2aab1.
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 681b3c371..df3f0d5f5 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -199,6 +199,7 @@ bool Document::SetDBCSCodePage(int dbcsCodePage_) {
SetCaseFolder(nullptr);
cb.SetLineEndTypes(lineEndBitSet & LineEndTypesSupported());
cb.SetUTF8Substance(SC_CP_UTF8 == dbcsCodePage);
+ ModifiedAt(0); // Need to restyle whole document
return true;
} else {
return false;