rename a function
This commit is contained in:
parent
c5f6e30042
commit
d20e6a415f
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue