From db788ba9ee6c9f24fbe40604865bf18ae53dbb0c Mon Sep 17 00:00:00 2001 From: GrenderG Date: Sat, 15 Apr 2017 19:23:44 +0200 Subject: [PATCH] Adding again r+. a+ does not work well on macOS and FreeBSD (thanks to @anephtali for the info). --- tte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tte.c b/tte.c index 9629eca..d41a542 100644 --- a/tte.c +++ b/tte.c @@ -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");