diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-09-06 23:43:34 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-09-06 23:43:34 -0400 |
commit | 541f34101692ae85a61398ccae1e72d279fe4580 (patch) | |
tree | 3bcc29437581850607bcf0bfe194214214804423 /src | |
parent | 9bff1b29293b50e506936e93c14d7a65e8b0ea29 (diff) |
Fixed bug in processing command line options introduced in r1546.
Diffstat (limited to 'src')
-rw-r--r-- | src/textadept.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c index d8f7d097..2161fbdc 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -1401,7 +1401,7 @@ static int lreset(lua_State *L) { l_setglobalview(L, focused_view); l_setglobaldoc(L, SS(focused_view, SCI_GETDOCPOINTER, 0, 0)); lua_pushnil(L), lua_setglobal(L, "arg"); - lL_dofile(L, "init.lua"); + lL_dofile(L, "init.lua"), lL_event(L, "initialized", -1); lua_getfield(L, LUA_REGISTRYINDEX, "ta_arg"), lua_setglobal(L, "arg"); lL_event(L, "reset_after", -1); return 0; @@ -2321,6 +2321,8 @@ int main(int argc, char **argv) { setlocale(LC_COLLATE, "C"), setlocale(LC_NUMERIC, "C"); if (lua = luaL_newstate(), !lL_init(lua, argc, argv, FALSE)) return 1; initing = TRUE, new_window(), lL_dofile(lua, "init.lua"), initing = FALSE; + lL_event(lua, "buffer_new", -1), lL_event(lua, "view_new", -1); // first ones + lL_event(lua, "initialized", -1); #if (__APPLE__ && !CURSES) gtkosx_application_ready(osxapp); #endif |