parent
af50261ae2
commit
53c9af3e61
3 changed files with 7 additions and 14 deletions
|
@ -1678,6 +1678,10 @@ impl CodeLabel {
|
|||
pub fn text(&self) -> &str {
|
||||
self.text.as_str()
|
||||
}
|
||||
|
||||
pub fn filter_text(&self) -> &str {
|
||||
&self.text[self.filter_range.clone()]
|
||||
}
|
||||
}
|
||||
|
||||
impl From<String> for CodeLabel {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue