Преглед на файлове

Merge pull request #34563 from Paulb23/23751_extra_line_indent

Fixed selection indent taking an additional line
Rémi Verschelde преди 5 години
родител
ревизия
5b687b4c93
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      scene/gui/text_edit.cpp

+ 1 - 0
scene/gui/text_edit.cpp

@@ -1946,6 +1946,7 @@ void TextEdit::indent_right() {
 
 	// Ignore if the cursor is not past the first column.
 	if (is_selection_active() && get_selection_to_column() == 0) {
+		selection_offset = 0;
 		end_line--;
 	}