about summary refs log tree commit diff stats
path: root/src/teliva.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-01-25 20:36:26 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-01-25 20:36:26 -0800
commitd20e6a415f15fd0e70f9cc2bd0979fca3f0b7ba9 (patch)
treeb09858ee7e451afc09ea775466a8e4990b872f6e /src/teliva.c
parentc5f6e30042fe45dc5c2d3b1ce8db6da468e48bbd (diff)
downloadteliva-d20e6a415f15fd0e70f9cc2bd0979fca3f0b7ba9.tar.gz
rename a function
Diffstat (limited to 'src/teliva.c')
-rw-r--r--src/teliva.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/teliva.c b/src/teliva.c
index d1d3f22..1b33940 100644
--- a/src/teliva.c
+++ b/src/teliva.c
@@ -636,7 +636,7 @@ static int starts_with(const char* s, const char* pre) {
   return strncmp(pre, s, strlen(pre)) == 0;
 }
 
-extern int load_editor_buffer_to_current_definition_in_image(lua_State* L);
+extern int load_editor_buffer_to_current_definition_in_image_and_reload(lua_State* L);
 extern int resumeEdit(lua_State* L);
 extern int editFrom(lua_State* L, char* filename, int rowoff, int coloff, int cy, int cx);
 int restore_editor_view(lua_State* L) {
@@ -660,7 +660,7 @@ int restore_editor_view(lua_State* L) {
   int oldtop = lua_gettop(L);
   while (1) {
     int status;
-    status = load_editor_buffer_to_current_definition_in_image(L);
+    status = load_editor_buffer_to_current_definition_in_image_and_reload(L);
     if (status == 0 || lua_isnil(L, -1))
       break;
     Previous_error = lua_tostring(L, -1);
@@ -810,7 +810,7 @@ static void update_definition(lua_State* L, const char* name, char* new_contents
 
 extern void save_tlv(lua_State* L, char* filename);
 extern int docall(lua_State* L, int narg, int clear);
-extern int load_editor_buffer_to_current_definition_in_image(lua_State* L) {
+extern int load_editor_buffer_to_current_definition_in_image_and_reload(lua_State* L) {
   char new_contents[8192] = {0};
   read_editor_buffer(new_contents, 8190);
   update_definition(L, Current_definition, new_contents);
@@ -830,7 +830,7 @@ static int edit_current_definition(lua_State* L) {
   int oldtop = lua_gettop(L);
   while (1) {
     int status;
-    status = load_editor_buffer_to_current_definition_in_image(L);
+    status = load_editor_buffer_to_current_definition_in_image_and_reload(L);
     if (status == 0 || lua_isnil(L, -1))
       break;
     Previous_error = lua_tostring(L, -1);