git: Fix commit modal contents being searchable (#35099)

Fixes #35093

Release Notes:

- Fixed Git commit editor being searchable.
This commit is contained in:
Piotr Osiewicz 2025-07-25 17:48:09 +02:00 committed by GitHub
parent 985350f9e8
commit abb3ed1ed1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -380,6 +380,9 @@ pub(crate) fn commit_message_editor(
window: &mut Window,
cx: &mut Context<Editor>,
) -> Editor {
project.update(cx, |this, cx| {
this.mark_buffer_as_non_searchable(commit_message_buffer.read(cx).remote_id(), cx);
});
let buffer = cx.new(|cx| MultiBuffer::singleton(commit_message_buffer, cx));
let max_lines = if in_panel { MAX_PANEL_EDITOR_LINES } else { 18 };
let mut commit_editor = Editor::new(