@@ -66,6 +66,8 @@ void GotoLineDialog::ok_pressed() {
66
66
text_editor->remove_secondary_carets ();
67
67
text_editor->unfold_line (line_number);
68
68
text_editor->set_caret_line (line_number);
69
+ text_editor->set_code_hint (" " );
70
+ text_editor->cancel_code_completion ();
69
71
hide ();
70
72
}
71
73
@@ -176,6 +178,8 @@ bool FindReplaceBar::_search(uint32_t p_flags, int p_from_line, int p_from_col)
176
178
text_editor->unfold_line (pos.y );
177
179
text_editor->select (pos.y , pos.x , pos.y , pos.x + text.length ());
178
180
text_editor->center_viewport_to_caret (0 );
181
+ text_editor->set_code_hint (" " );
182
+ text_editor->cancel_code_completion ();
179
183
180
184
line_col_changed_for_result = true ;
181
185
}
@@ -1330,6 +1334,8 @@ void CodeTextEditor::goto_line(int p_line, int p_column) {
1330
1334
text_editor->unfold_line (CLAMP (p_line, 0 , text_editor->get_line_count () - 1 ));
1331
1335
text_editor->set_caret_line (p_line, false );
1332
1336
text_editor->set_caret_column (p_column, false );
1337
+ text_editor->set_code_hint (" " );
1338
+ text_editor->cancel_code_completion ();
1333
1339
// Defer in case the CodeEdit was just created and needs to be resized.
1334
1340
callable_mp ((TextEdit *)text_editor, &TextEdit::adjust_viewport_to_caret).call_deferred (0 );
1335
1341
}
@@ -1338,6 +1344,8 @@ void CodeTextEditor::goto_line_selection(int p_line, int p_begin, int p_end) {
1338
1344
text_editor->remove_secondary_carets ();
1339
1345
text_editor->unfold_line (CLAMP (p_line, 0 , text_editor->get_line_count () - 1 ));
1340
1346
text_editor->select (p_line, p_begin, p_line, p_end);
1347
+ text_editor->set_code_hint (" " );
1348
+ text_editor->cancel_code_completion ();
1341
1349
callable_mp ((TextEdit *)text_editor, &TextEdit::adjust_viewport_to_caret).call_deferred (0 );
1342
1350
}
1343
1351
@@ -1347,6 +1355,8 @@ void CodeTextEditor::goto_line_centered(int p_line, int p_column) {
1347
1355
text_editor->unfold_line (CLAMP (p_line, 0 , text_editor->get_line_count () - 1 ));
1348
1356
text_editor->set_caret_line (p_line, false );
1349
1357
text_editor->set_caret_column (p_column, false );
1358
+ text_editor->set_code_hint (" " );
1359
+ text_editor->cancel_code_completion ();
1350
1360
callable_mp ((TextEdit *)text_editor, &TextEdit::center_viewport_to_caret).call_deferred (0 );
1351
1361
}
1352
1362
0 commit comments