Adding again r+. a+ does not work well on macOS and FreeBSD (thanks to @anephtali for the info).

This commit is contained in:
GrenderG
2017-04-15 19:23:44 +02:00
parent 239efdec25
commit db788ba9ee
+1 -1
View File
@@ -1067,7 +1067,7 @@ void editorOpen(char* file_name) {
editorSelectSyntaxHighlight();
FILE* file = fopen(file_name, "a+");
FILE* file = fopen(file_name, "r+");
if (!file)
die("Failed to open the file");