diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-28 14:15:48 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-28 14:25:01 -0800 |
commit | 499286566d2b9e3dc951a3fe02287d660634c113 (patch) | |
tree | c406749ea67a846efb7d2e1d99b8e53bb95883e1 /src | |
parent | cec57992b7b32cd75f411dcc998ddd7ce7f69b4a (diff) | |
download | teliva-499286566d2b9e3dc951a3fe02287d660634c113.tar.gz |
inline an unnecessary function
Diffstat (limited to 'src')
-rw-r--r-- | src/lua.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lua.c b/src/lua.c index 88e0868..526ce65 100644 --- a/src/lua.c +++ b/src/lua.c @@ -957,12 +957,6 @@ int load_view_from_editor_state (lua_State *L) { } -void select_view (lua_State *L) { - if (load_view_from_editor_state(L)) - big_picture_view(L); -} - - extern void cleanup_curses (void); void developer_mode (lua_State *L) { /* clobber the app's ncurses colors; we'll restart the app when we rerun it. */ @@ -971,7 +965,8 @@ void developer_mode (lua_State *L) { for (int i = 0; i < 8; ++i) init_pair(i+8, -1, i); nodelay(stdscr, 0); - select_view(L); + if (load_view_from_editor_state(L)) + big_picture_view(L); cleanup_curses(); execv(Argv[0], Argv); /* never returns */ |