bugfix: editor was no longer saving anything
I made the changes reverted here out of a mistaken sense that big-picture edits would interfere with Teliva's memory of what is currently being edited (teliva_editor_state).
This commit is contained in:
parent
ce186e85f4
commit
e782cb1ead
|
@ -630,10 +630,8 @@ void big_picture_view(lua_State* L) {
|
||||||
lua_settop(L, oldtop);
|
lua_settop(L, oldtop);
|
||||||
default_big_picture_view(L);
|
default_big_picture_view(L);
|
||||||
} else {
|
} else {
|
||||||
FILE* out = fopen("teliva_big_picture", "w");
|
save_to_current_definition_and_editor_buffer(L, "doc:main");
|
||||||
fprintf(out, "%s", lua_tostring(L, -1));
|
int back_to_big_picture = edit_current_definition(L);
|
||||||
fclose(out);
|
|
||||||
int back_to_big_picture = edit(L, "teliva_big_picture", "doc:main");
|
|
||||||
if (back_to_big_picture)
|
if (back_to_big_picture)
|
||||||
default_big_picture_view(L);
|
default_big_picture_view(L);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue