diff options
author | 2011-03-26 16:45:09 -0400 | |
---|---|---|
committer | 2011-03-26 16:45:09 -0400 | |
commit | 0bb23d3f2a547dc71fb1208d43ccba2399328613 (patch) | |
tree | 552226731292cd33be019977aaf5de1bd1a29363 | |
parent | cb8245f030701c14a7448b2dd5b4cf2f390b8d2e (diff) | |
download | textadept-0bb23d3f2a547dc71fb1208d43ccba2399328613.tar.gz textadept-0bb23d3f2a547dc71fb1208d43ccba2399328613.zip |
Fixed bug in reset() with new menu and key command handling; src/textadept.c
-rw-r--r-- | src/textadept.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textadept.c b/src/textadept.c index 7ff41533..2ac219b6 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2005,11 +2005,11 @@ static int l_cf_reset(lua_State *lua) { l_init(0, NULL, TRUE); lua_pushboolean(lua, TRUE); lua_setglobal(lua, "RESETTING"); + l_set_view_global(focused_editor); + l_set_buffer_global(focused_editor); l_load_script("init.lua"); lua_pushnil(lua); lua_setglobal(lua, "RESETTING"); - l_set_view_global(focused_editor); - l_set_buffer_global(focused_editor); l_emit_event("reset_after", -1); return 0; } |