From 5608e1c8de2b1a6e7b1eb296ba5d62fd1cf791fe Mon Sep 17 00:00:00 2001 From: evanlin96069 <72735402+evanlin96069@users.noreply.github.com> Date: Thu, 28 Dec 2023 18:03:27 +0800 Subject: [PATCH] Fix output bug when no file is opened --- src/output.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output.c b/src/output.c index cdba1e5..9a6d2d6 100644 --- a/src/output.c +++ b/src/output.c @@ -16,6 +16,8 @@ #include "unicode.h" void editorDrawRows(abuf* ab) { + setColor(ab, gEditor.color_cfg.bg, 1); + EditorSelectRange range = {0}; if (gCurFile->cursor.is_selected) getSelectStartEnd(&range);