Browse Source

Merge pull request #4583 from Paulb23/autocomplte_string_completion

Fixed autocomplete strings not appearing for function arguments
Rémi Verschelde 9 năm trước cách đây
mục cha
commit
b78b01354d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scene/gui/text_edit.cpp

+ 1 - 1
scene/gui/text_edit.cpp

@@ -3903,7 +3903,7 @@ void TextEdit::_update_completion_candidates() {
 		}
 	}
 
-	if (l[cursor.column - 1] == '(' && !pre_keyword) {
+	if (l[cursor.column - 1] == '(' && !pre_keyword && !completion_strings[0].begins_with("\"")) {
 		cancel = true;
 	}