Skip to content

Commit

Permalink
ui: Disable highlight matching brackets in source buffer
Browse files Browse the repository at this point in the history
Highlight matching brackets causes a crash when subclassing
a GtkSourceBuffer. See https://gitlab.gnome.org/World/Rust/sourceview5-rs/-/issues/11
  • Loading branch information
jsparber committed Dec 26, 2024
1 parent 5025680 commit 0cd78b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aardvark-app/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ mod imp {
let markdown = language_manager.language("markdown");

buffer.set_language(markdown.as_ref());
// FIXME: When using subclassing highlight matching brackets causes a crash
// See: https://gitlab.gnome.org/World/Rust/sourceview5-rs/-/issues/11
buffer.set_highlight_matching_brackets(false);

self.text_view.set_buffer(Some(&buffer));

Expand Down

0 comments on commit 0cd78b9

Please sign in to comment.