aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
parentc5f6e30042fe45dc5c2d3b1ce8db6da468e48bbd (diff)
downloadteliva-d20e6a415f15fd0e70f9cc2bd0979fca3f0b7ba9.tar.gz
rename a function
Diffstat (limited to 'src')
-rw-r--r--src/kilo.c2
-rw-r--r--src/teliva.c8
-rw-r--r--src/teliva.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/kilo.c b/src/kilo.c
index 9e1dfe6..d1ab93e 100644
--- a/src/kilo.c
+++ b/src/kilo.c
@@ -1040,7 +1040,7 @@ static void editorGo(lua_State* L) {
if (strlen(Current_definition) > 0) {
/* We're currently editing a definition. Save it. */
editorSaveToDisk();
- load_editor_buffer_to_current_definition_in_image(L);
+ load_editor_buffer_to_current_definition_in_image_and_reload(L);
}
word_at_cursor(query, CURRENT_DEFINITION_LEN);
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);
diff --git a/src/teliva.h b/src/teliva.h
index 2821c49..e991313 100644
--- a/src/teliva.h
+++ b/src/teliva.h
@@ -158,7 +158,7 @@ extern void permissions_mode(lua_State* L);
extern int file_operation_permitted(const char* filename, const char* mode);
extern int net_operations_permitted;
-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 void save_to_current_definition_and_editor_buffer(lua_State* L, const char* definition);
extern void save_editor_state(int rowoff, int coloff, int cy, int cx);