Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style change #61

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions kilo.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

#define _BSD_SOURCE
#define _GNU_SOURCE
#define _DEFAULT_SOURCE

#include <termios.h>
#include <stdlib.h>
Expand All @@ -50,6 +51,7 @@
#include <unistd.h>
#include <stdarg.h>
#include <fcntl.h>
#include <time.h>

/* Syntax highlight types */
#define HL_NORMAL 0
Expand Down Expand Up @@ -87,7 +89,7 @@ typedef struct erow {
} erow;

typedef struct hlcolor {
int r,g,b;
int r, g, b;
} hlcolor;

struct editorConfig {
Expand Down Expand Up @@ -1244,8 +1246,7 @@ void initEditor(void) {
E.filename = NULL;
E.syntax = NULL;
if (getWindowSize(STDIN_FILENO,STDOUT_FILENO,
&E.screenrows,&E.screencols) == -1)
{
&E.screenrows,&E.screencols) == -1){
perror("Unable to query the screen for size (columns / rows)");
exit(1);
}
Expand Down