fix documentHighlight missing references
This commit is contained in:
parent
9b2edba3b4
commit
6a2228e19d
3 changed files with 101 additions and 37 deletions
|
|
@ -6200,6 +6200,7 @@ pub const Editor = struct {
|
|||
}
|
||||
|
||||
pub fn done_highlight_reference(self: *Self) void {
|
||||
self.sort_matches();
|
||||
self.highlight_references_state = .done;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ pub fn receive(self: *Self, from_: tp.pid_ref, m: tp.message) error{Exit}!bool {
|
|||
}
|
||||
self.find_in_files_state = .done;
|
||||
return true;
|
||||
} else if (try m.match(.{ "HREF", tp.extract(&path), tp.extract(&begin_line), tp.extract(&begin_pos), tp.extract(&end_line), tp.extract(&end_pos), tp.extract(&lines) })) {
|
||||
} else if (try m.match(.{ "HREF", tp.extract(&begin_line), tp.extract(&begin_pos), tp.extract(&end_line), tp.extract(&end_pos) })) {
|
||||
if (self.get_active_editor()) |editor| editor.add_highlight_reference(.{
|
||||
.begin = .{ .row = begin_line, .col = begin_pos },
|
||||
.end = .{ .row = end_line, .col = end_pos },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue