You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #29306 from qarmin/small_code_fixes
Small fixes to unrechable code, possibly overflows, using NULL pointers
This commit is contained in:
@@ -930,7 +930,7 @@ void CodeTextEditor::convert_case(CaseStyle p_case) {
|
||||
for (int i = begin; i <= end; i++) {
|
||||
int len = text_editor->get_line(i).length();
|
||||
if (i == end)
|
||||
len -= len - end_col;
|
||||
len = end_col;
|
||||
if (i == begin)
|
||||
len -= begin_col;
|
||||
String new_line = text_editor->get_line(i).substr(i == begin ? begin_col : 0, len);
|
||||
|
||||
Reference in New Issue
Block a user