From 2bf038025274f5dd6ddaa09c5fbe0960b272d9f7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 15 Nov 2014 10:47:57 -0500 Subject: Fixed command entry reset bug now that the entry is a Scintilla buffer. --- src/textadept.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index 341a5719..1105c4b1 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -152,7 +152,7 @@ TermKey *ta_tk; // global for CDK use (focused_view ? SS(focused_view, SCI_SETFOCUS, 0, 0) : 0, \ SS(view, SCI_SETFOCUS, 1, 0)) /** Callback for refreshing a single Scintilla view. */ -static void r_cb(void *view, void*_) {scintilla_refresh((Scintilla *)view);} +static void r_cb(void *view, void*_) { scintilla_refresh((Scintilla *)view); } #define refresh_all() { \ wman_walk(wm, r_cb, NULL), wman_refresh(wm); \ if (command_entry_focused) scintilla_refresh(command_entry); \ @@ -1407,7 +1407,7 @@ static int lL_dofile(lua_State *L, const char *filename) { /** `_G.reset()` Lua function. */ static int lreset(lua_State *L) { lL_event(L, "reset_before", -1); - lL_init(L, 0, NULL, TRUE); + lL_init(L, 0, NULL, TRUE), register_command_entry_doc(); l_setglobalview(L, focused_view); l_setglobaldoc(L, SS(focused_view, SCI_GETDOCPOINTER, 0, 0)); lua_pushnil(L), lua_setglobal(L, "arg"); -- cgit v1.2.3