This commit is contained in:
Jana Dönszelmann 2026-04-03 18:07:35 +02:00
parent bb8f6bedf6
commit 4a6c1020f4
No known key found for this signature in database
10 changed files with 113 additions and 34 deletions

View file

@ -7,7 +7,7 @@ use crate::tui::{
input::{FieldMatcher, InputState, InputTarget},
view::LogView,
},
model::{FieldsName, LogEntry, id},
model::{LogEntry, SpanDescriptor, id},
processing::Cursor,
widgets::{fieldtree, last_error::LastError},
};
@ -54,7 +54,7 @@ impl LogViewer {
}
}
pub fn get_selected_field(&self) -> Option<(FieldsName, String, String)> {
pub fn get_selected_field(&self) -> Option<(SpanDescriptor, String, String)> {
let (span_idx, name_idx) = self.field_state.get()?;
let entry = self.selected().map(|(s, _)| s)?;