diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-06 16:10:32 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-06 16:10:32 +0100 |
commit | cf1e6bb6fc19f28c91aae9939fff99a7e622ec04 (patch) | |
tree | 810932a5f7edd01bb137259413a0fe99e96918be /scene | |
parent | 930a94bfc496b901904fd4001ec67a99d0852715 (diff) | |
parent | 7127e57bf8e2281059287e2e8b3c57b84ecfe978 (diff) |
Merge pull request #68282 from alfredbaudisch/backspace-multi-care
Correctly deletes multi-caret selection with backspace
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/code_edit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/code_edit.cpp b/scene/gui/code_edit.cpp index 5f8f25154c..ea310f5a12 100644 --- a/scene/gui/code_edit.cpp +++ b/scene/gui/code_edit.cpp @@ -694,8 +694,8 @@ void CodeEdit::_backspace_internal(int p_caret) { return; } - if (has_selection()) { - delete_selection(); + if (has_selection(p_caret)) { + delete_selection(p_caret); return; } |