Add BufferLine::into_text

This commit is contained in:
Audrey Dutcher 2022-12-27 15:33:13 -08:00 committed by Jeremy Soller
parent 8614a7a398
commit cd15418315

View file

@ -50,6 +50,11 @@ impl BufferLine {
}
}
/// Consume this line, returning only its text contents as a String.
pub fn into_text(self) -> String {
self.text
}
/// Get attributes list
pub fn attrs_list(&self) -> &AttrsList {
&self.attrs_list