From 6c12ccb4c15d5391bc309db1438c135484539f5e Mon Sep 17 00:00:00 2001 From: Maddie <32415621+SpyHoodle@users.noreply.github.com> Date: Mon, 5 Dec 2022 14:05:22 +0000 Subject: [PATCH] something better with buffers --- TODO.md | 2 -- src/tui/ui.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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); };