@@ -66,6 +66,8 @@ void GotoLineDialog::ok_pressed() {
6666 text_editor->remove_secondary_carets ();
6767 text_editor->unfold_line (line_number);
6868 text_editor->set_caret_line (line_number);
69+ text_editor->set_code_hint (" " );
70+ text_editor->cancel_code_completion ();
6971 hide ();
7072}
7173
@@ -176,6 +178,8 @@ bool FindReplaceBar::_search(uint32_t p_flags, int p_from_line, int p_from_col)
176178 text_editor->unfold_line (pos.y );
177179 text_editor->select (pos.y , pos.x , pos.y , pos.x + text.length ());
178180 text_editor->center_viewport_to_caret (0 );
181+ text_editor->set_code_hint (" " );
182+ text_editor->cancel_code_completion ();
179183
180184 line_col_changed_for_result = true ;
181185 }
@@ -1330,6 +1334,8 @@ void CodeTextEditor::goto_line(int p_line, int p_column) {
13301334 text_editor->unfold_line (CLAMP (p_line, 0 , text_editor->get_line_count () - 1 ));
13311335 text_editor->set_caret_line (p_line, false );
13321336 text_editor->set_caret_column (p_column, false );
1337+ text_editor->set_code_hint (" " );
1338+ text_editor->cancel_code_completion ();
13331339 // Defer in case the CodeEdit was just created and needs to be resized.
13341340 callable_mp ((TextEdit *)text_editor, &TextEdit::adjust_viewport_to_caret).call_deferred (0 );
13351341}
@@ -1338,6 +1344,8 @@ void CodeTextEditor::goto_line_selection(int p_line, int p_begin, int p_end) {
13381344 text_editor->remove_secondary_carets ();
13391345 text_editor->unfold_line (CLAMP (p_line, 0 , text_editor->get_line_count () - 1 ));
13401346 text_editor->select (p_line, p_begin, p_line, p_end);
1347+ text_editor->set_code_hint (" " );
1348+ text_editor->cancel_code_completion ();
13411349 callable_mp ((TextEdit *)text_editor, &TextEdit::adjust_viewport_to_caret).call_deferred (0 );
13421350}
13431351
@@ -1347,6 +1355,8 @@ void CodeTextEditor::goto_line_centered(int p_line, int p_column) {
13471355 text_editor->unfold_line (CLAMP (p_line, 0 , text_editor->get_line_count () - 1 ));
13481356 text_editor->set_caret_line (p_line, false );
13491357 text_editor->set_caret_column (p_column, false );
1358+ text_editor->set_code_hint (" " );
1359+ text_editor->cancel_code_completion ();
13501360 callable_mp ((TextEdit *)text_editor, &TextEdit::center_viewport_to_caret).call_deferred (0 );
13511361}
13521362
0 commit comments