aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-06-01 13:31:58 +0000
committernyamatongwe <unknown>2004-06-01 13:31:58 +0000
commitac7b2a73de2f97ead7512eec7efb1fd223f2f7ee (patch)
treeb163413284fbcee8ee0a21de6c79bd1c7f47f2f0 /src/Editor.cxx
parent9c208d8e9961801bbec997a21a485deeb295ced3 (diff)
downloadscintilla-mirror-ac7b2a73de2f97ead7512eec7efb1fd223f2f7ee.tar.gz
Patch for allowing retrieval of document text encoded as
UTF-8 and converting from UTF-8 to the document encoding.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 1ab36610b..23b612229 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -360,6 +360,8 @@ Editor::Editor() {
topLine = 0;
posTopLine = 0;
+
+ lengthForEncode = 0;
needUpdateUI = true;
braces[0] = invalidPosition;
@@ -6948,6 +6950,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
SetSelection(currentPos, anchor); // Ensure selection inside document
return 0;
+ case SCI_SETLENGTHFORENCODE:
+ lengthForEncode = wParam;
+ return 0;
+
case SCI_SELECTIONISRECTANGLE:
return selType == selRectangle ? 1 : 0;