Compare commits

..

No commits in common. "12c4d507b4af68aa12020efa60dbaad2223099ef" and "dfcca170eff58eee462526563d9012219c9efde0" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View file

@ -47,7 +47,7 @@ bottom_bar: []const u8 = "mode file log selection diagnostics keybind branch lin
show_scrollbars: bool = true,
show_fileicons: bool = true,
show_local_diagnostics_in_panel: bool = false,
scrollbar_auto_hide: bool = true,
scrollbar_auto_hide: bool = false,
start_debugger_on_crash: bool = false,

View file

@ -6264,11 +6264,11 @@ pub const Editor = struct {
pub const highlight_references_meta: Meta = .{ .description = "Language: Highlight references" };
pub fn add_highlight_reference(self: *Self, match_: Match) void {
self.match_type = .highlight_references;
if (self.highlight_references_state == .done) {
self.highlight_references_state = .adding;
self.cancel_all_matches();
}
self.match_type = .highlight_references;
const root = self.buf_root() catch return;
var match = match_;
match.begin.row -|= 1;
@ -6954,9 +6954,7 @@ pub const EditorWidget = struct {
switch (self.editor.match_type) {
.find, .auto_find => return,
.highlight_references => {
if (self.editor.match_at_cursor(primary.cursor)) |_| {
return;
} else {
if (self.editor.match_at_cursor(primary.cursor) == null) {
self.editor.cancel_all_matches();
tui.need_render();
}