diff options
author | nyamatongwe <devnull@localhost> | 2005-04-18 07:11:17 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2005-04-18 07:11:17 +0000 |
commit | 9c3dc9ffe6e1af51cf23bd26a8c3c1c7d732bc9b (patch) | |
tree | add7648fe52bddb98802875af83ce4abd819aae4 | |
parent | 3d44c8ff8ba7a295defb0514ea75c7eb71ee9347 (diff) | |
download | scintilla-mirror-9c3dc9ffe6e1af51cf23bd26a8c3c1c7d732bc9b.tar.gz |
Make code work as documented by treating -1 as special length for encoding
as UTF-8 rather than 0.
-rw-r--r-- | include/Scintilla.iface | 2 | ||||
-rw-r--r-- | src/Editor.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 63b626bf5..2dd86eec2 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1606,7 +1606,7 @@ fun void Allocate=2446(int bytes,) fun int TargetAsUTF8=2447(, stringresult s) # Set the length of the utf8 argument for calling EncodedFromUTF8. -# Set to 0 and the string will be measured to the first nul. +# Set to -1 and the string will be measured to the first nul. fun void SetLengthForEncode=2448(int bytes,) # Translates a UTF8 string into the document encoding. 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; |