diff --git a/TODO.md b/TODO.md index 43d7cab..e69de29 100644 --- a/TODO.md +++ b/TODO.md @@ -1,2 +0,0 @@ -- [ ] Add scratch buffers -- [ ] Add read only buffers diff --git a/src/tui/ui.rs b/src/tui/ui.rs index 29d9d3a..18fc400 100644 --- a/src/tui/ui.rs +++ b/src/tui/ui.rs @@ -10,7 +10,7 @@ pub fn start(screen: &mut Screen, editor: Editor) { // Refresh the screen screen.refresh().unwrap(); - // Draw the welcome message + // Draw the welcome message only if it is a scratch buffer if editor.buffer.kind == BufferKind::Scratch { components::welcome::draw(screen, &editor); };