diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-13 15:00:49 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-13 15:00:49 -0800 |
commit | e06a7b1a7b7f1748ca6bb22a53c91c9ab288a3d5 (patch) | |
tree | 5331420abc57debfe2ff11ad45f2abd0dd9b8ddd /src/kilo.c | |
parent | 33b705282dbc10af06601b77ea4cbd38c8e9acea (diff) | |
download | teliva-e06a7b1a7b7f1748ca6bb22a53c91c9ab288a3d5.tar.gz |
.
Diffstat (limited to 'src/kilo.c')
-rw-r--r-- | src/kilo.c | 6 |
1 files 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: |