From 0bb23d3f2a547dc71fb1208d43ccba2399328613 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 26 Mar 2011 16:45:09 -0400 Subject: Fixed bug in reset() with new menu and key command handling; src/textadept.c --- src/textadept.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3