fix some (but far from all) visual bugs

This commit is contained in:
Jana Dönszelmann 2026-03-31 17:03:41 +02:00
parent d0bc7e952c
commit b668a894c7
No known key found for this signature in database
7 changed files with 114 additions and 104 deletions

View file

@ -90,9 +90,17 @@ impl Matcher {
lv.selected().and_then(|(i, _)| i.message_or_name()),
)?,
}),
InputTarget::This => lv
.selected()
.map(|(i, _)| Self::Specific { hash: i.hash() }),
InputTarget::This => {
if lv
.selected()
.is_none_or(|(i, _)| !i.can_be_inlined(&lv.filters))
{
return None;
}
lv.selected()
.map(|(i, _)| Self::Specific { hash: i.hash() })
}
InputTarget::Surround => todo!(),
}
}