utf8 processing without struct
This commit is contained in:
@@ -30,15 +30,12 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
char * splash_screen = (char *) calloc(256, sizeof(char));
|
||||
|
||||
// Set support for utf-8
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
// INIT
|
||||
|
||||
enableRawMode();
|
||||
initEditor();
|
||||
if (argc >= 2) {
|
||||
E.state = READ_AND_WRITE;
|
||||
editorOpen(argv[1]);
|
||||
} else {
|
||||
strcat(splash_screen, getenv("HOME"));
|
||||
|
||||
Reference in New Issue
Block a user