From e06a7b1a7b7f1748ca6bb22a53c91c9ab288a3d5 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 13 Nov 2021 15:00:49 -0800 Subject: . --- src/kilo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kilo.c b/src/kilo.c index 1acf243..f0a815c 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -806,7 +806,7 @@ static int editorOpen(char *filename) { } /* Save the current file on disk. Return 0 on success, 1 on error. */ -static int editorSave(void) { +static int editorSaveToDisk(void) { int len; char *buf = editorRowsToString(&len); int fd = open(E.filename,O_RDWR|O_CREAT,0644); @@ -1176,7 +1176,7 @@ static void editorGo(lua_State* L, int fd) { char query[KILO_QUERY_LEN+1] = {0}; int qlen = 0; - editorSave(); + editorSaveToDisk(); load_editor_buffer_to_current_definition_in_image(L); while(1) { @@ -1222,7 +1222,7 @@ static void editorProcessKeypress(lua_State* L, int fd) { break; case CTRL_E: /* Save and quit. */ - editorSave(); + editorSaveToDisk(); Quit = 1; break; case CTRL_G: -- cgit 1.4.1-2-gfad0