aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-04-18 07:11:17 +0000
committernyamatongwe <devnull@localhost>2005-04-18 07:11:17 +0000
commit9c3dc9ffe6e1af51cf23bd26a8c3c1c7d732bc9b (patch)
treeadd7648fe52bddb98802875af83ce4abd819aae4 /src
parent3d44c8ff8ba7a295defb0514ea75c7eb71ee9347 (diff)
downloadscintilla-mirror-9c3dc9ffe6e1af51cf23bd26a8c3c1c7d732bc9b.tar.gz
Make code work as documented by treating -1 as special length for encoding
as UTF-8 rather than 0.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index b6c671b57..4e9bcc4cb 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -362,7 +362,7 @@ Editor::Editor() {
topLine = 0;
posTopLine = 0;
- lengthForEncode = 0;
+ lengthForEncode = -1;
needUpdateUI = true;
braces[0] = invalidPosition;