diff options
author | Joachim Mairboeck <joachim.mairboeck@risc-software.at> | 2025-02-25 13:56:47 +0100 |
---|---|---|
committer | Joachim Mairboeck <joachim.mairboeck@risc-software.at> | 2025-02-25 13:56:47 +0100 |
commit | 8a392e9483783e63e2e63dc71bfd389523fe537d (patch) | |
tree | ccc3844357d18978bd1d7b6f3395d1bd37edd5fb /src | |
parent | 8e68addb0c225ea36392777399373a645b5744a0 (diff) | |
download | scintilla-mirror-8a392e9483783e63e2e63dc71bfd389523fe537d.tar.gz |
Bug [#2463]. Disallow case changes if the range contains protected text
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 283edff8f..a696cb7e0 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3143,7 +3143,7 @@ void Editor::ChangeCaseOfSelection(CaseMapping caseMapping) { SelectionRange currentNoVS = current; currentNoVS.ClearVirtualSpace(); const size_t rangeBytes = currentNoVS.Length(); - if (rangeBytes > 0) { + if (rangeBytes > 0 && !RangeContainsProtected(currentNoVS)) { std::string sText = RangeText(currentNoVS.Start().Position(), currentNoVS.End().Position()); std::string sMapped = CaseMapString(sText, caseMapping); |