something better with buffers

This commit is contained in:
Maddie 2022-12-05 14:05:22 +00:00
parent 08081d54e2
commit 6c12ccb4c1
2 changed files with 1 additions and 3 deletions

View File

@ -1,2 +0,0 @@
- [ ] Add scratch buffers
- [ ] Add read only buffers

View File

@ -10,7 +10,7 @@ pub fn start(screen: &mut Screen, editor: Editor) {
// Refresh the screen // Refresh the screen
screen.refresh().unwrap(); screen.refresh().unwrap();
// Draw the welcome message // Draw the welcome message only if it is a scratch buffer
if editor.buffer.kind == BufferKind::Scratch { if editor.buffer.kind == BufferKind::Scratch {
components::welcome::draw(screen, &editor); components::welcome::draw(screen, &editor);
}; };