### Godot version

4.1 dev4

### System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

### Issue description


https://github.com/godotengine/godot/assets/2223172/fe382ae2-04bb-4efa-b666-9e94ebb56a9c



### Steps to reproduce

1​. Go to Script Editor
2​. Toggle bookmark (Go To -> Toggle Bookmark)
3[.](https://media.tenor.com/_BiwWBWhYucAAAAd/what-huh.gif) It's not visible

### Minimal reproduction project

N/A
}
			text_editor->set_line(line, delimiter + line_text);
		}
		
		int caret_i = 0;
		int selection_i = 0;
		int offset = (is_commented ? -1 : 1) * delimiter.length();
		for (const int &c2 : caret_edit_order) {
			bool is_line_selection = text_editor->has_selection(c2) && text_editor->get_selection_from_line(c2) < text_editor->get_selection_to_line(c2);
			if (text_editor->get_caret_line(c2) >= from && text_editor->get_caret_line(c2) <= to) {
				int caret_col = caret_cols[caret_i++];
				caret_col += (is_line_selection && caret_col == 0) ? 0 : offset;
				text_editor->set_caret_column(caret_col, c2 == 0, c2);
			}
			if (text_editor->has_selection(c2) && text_editor->get_selection_to_line(c2) >= from && text_editor->get_selection_to_line(c2) <= to) {
				int from_col = text_editor->get_selection_from_column(c2);
				from_col += (is_line_selection && from_col == 0) ? 0 : offset;
				int to_col = selection_to_cols[selection_i++];
				to_col += (to_col == 0) ? 0 : offset;
				text_editor->select(
						text_editor->get_selection_from_line(c2), from_col,
						text_editor->get_selection_to_line(c2), to_col, c2);
			}
		}
	}
	text_editor->merge_overlapping_carets();
	text_editor->end_complex_operation();
	text_editor->queue_redraw();
}
void CodeTextEditor::goto_line(int p_line) {