Skip to content

Commit

Permalink
Fix output bug when no file is opened
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlin96069 committed Dec 29, 2023
1 parent 274c654 commit 5608e1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5608e1c

Please sign in to comment.