Adding again r+. a+ does not work well on macOS and FreeBSD (thanks to @anephtali for the info).
This commit is contained in:
1 parent
239efdec25
commit
db788ba9ee
1 file changed
+1
-1
@@ -1067,7 +1067,7 @@ void editorOpen(char* file_name) {
|
|||||||
|
|
||||||
editorSelectSyntaxHighlight();
|
editorSelectSyntaxHighlight();
|
||||||
|
|
||||||
FILE* file = fopen(file_name, "a+");
|
FILE* file = fopen(file_name, "r+");
|
||||||
if (!file)
|
if (!file)
|
||||||
die("Failed to open the file");
|
die("Failed to open the file");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user