diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lcurses/window.c | 4 | ||||
-rw-r--r-- | src/lua.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lcurses/window.c b/src/lcurses/window.c index 8d3d5f1..87c5d08 100644 --- a/src/lcurses/window.c +++ b/src/lcurses/window.c @@ -1304,7 +1304,7 @@ Read a character from the window input. @see curses.echo @see keypad */ -extern void switch_to_editor (lua_State *L); +extern void developer_mode (lua_State *L); static int Wgetch(lua_State *L) { @@ -1318,7 +1318,7 @@ Wgetch(lua_State *L) exit(0); } if (c == CTRL_E) - switch_to_editor(L); + developer_mode(L); /* handle other standard menu hotkeys here */ return pushintresult(c); diff --git a/src/lua.c b/src/lua.c index 029b351..88e0868 100644 --- a/src/lua.c +++ b/src/lua.c @@ -952,6 +952,7 @@ int load_view_from_editor_state (lua_State *L) { int cx = lua_tointeger(L, -1); int back_to_big_picture = edit_from(L, "teliva_editor_buffer", /*error message*/ "", rowoff, coloff, cy, cx); lua_settop(L, editor_state_index); + // TODO: error handling like in edit_image return back_to_big_picture; } @@ -963,7 +964,7 @@ void select_view (lua_State *L) { extern void cleanup_curses (void); -void switch_to_editor (lua_State *L) { +void developer_mode (lua_State *L) { /* clobber the app's ncurses colors; we'll restart the app when we rerun it. */ for (int i = 0; i < 8; ++i) init_pair(i, i, -1); |