Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurrium committed Jan 3, 2023
1 parent 69b1b4c commit b2e35c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kilo.c
@@ -1,5 +1,9 @@
/*** includes ***/

#define _DEFAULT_SOURCE
#define _BSD_SOURCE
#define _GNU_SOURCE

#include <ctype.h>
#include <errno.h>
#include <stdio.h>
Expand Down Expand Up @@ -285,7 +289,7 @@ void editorDrawRows(struct abuf *ab) {
int y;
for (y = 0; y < E.screenrows; y++) {
if (y >= E.numrows) {
if (y == E.screenrows / 3) {
if (E.numrows == 0 && y == E.screenrows / 3) {
char welcome[80];
int welcomelen = snprintf(welcome, sizeof(welcome),
"Kilo editor -- version %s", KILO_VERSION);
Expand Down

0 comments on commit b2e35c5

Please sign in to comment.