This commit is contained in:
@@ -33,14 +33,14 @@ int main(int argc, char *argv[]) {
|
||||
initEditor();
|
||||
if (argc >= 2) {
|
||||
EditorPane *active = splitScreenGetActivePane();
|
||||
active->buffer_id = bufferCreate(argv[1]);
|
||||
active->buffer_id = bufferCreate(argv[1], READ_AND_WRITE);
|
||||
} else {
|
||||
strcat(splash_screen, getenv("HOME"));
|
||||
strcat(splash_screen, "/.beluga/assets/beluga.txt");
|
||||
|
||||
appDebug("splash : %s\n", splash_screen);
|
||||
EditorPane *active = splitScreenGetActivePane();
|
||||
active->buffer_id = bufferCreate(splash_screen);
|
||||
active->buffer_id = bufferCreate(splash_screen, READ_ONLY);
|
||||
}
|
||||
free(splash_screen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user