Add placeholder text as a feature of Editor, use it in chat panel

This commit is contained in:
Max Brunsfeld
2021-09-02 17:36:56 -07:00
parent 1c43121ae0
commit 522bef2e3a
6 changed files with 63 additions and 2 deletions
+4
View File
@@ -108,6 +108,10 @@ impl DisplayMapSnapshot {
self.folds_snapshot.fold_count()
}
pub fn is_empty(&self) -> bool {
self.buffer_snapshot.len() == 0
}
pub fn buffer_rows(&self, start_row: u32) -> BufferRows {
self.wraps_snapshot.buffer_rows(start_row)
}