Flash
This commit is contained in:
@@ -68,6 +68,10 @@ impl Editor {
|
||||
self.completion.candidates = candidates;
|
||||
}
|
||||
|
||||
pub fn insert_str(&mut self, s: &str) {
|
||||
self.text.insert_str(s);
|
||||
}
|
||||
|
||||
pub fn content(&self) -> String {
|
||||
self.text.lines().join("\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user