From 2323ec38bf5f5340e93de3a53eaca4b428a3645e Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 2 Jan 2011 21:32:46 -0500 Subject: Fixed bug with update_ui in buffer_new and view_new events; core/gui.lua --- core/gui.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/gui.lua') diff --git a/core/gui.lua b/core/gui.lua index 51138bd1..3418e5ea 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -96,7 +96,7 @@ connect('view_new', io.stderr:write(err) end end) -connect('view_new', events.emit('update_ui')) -- update document status +connect('view_new', function() events.emit('update_ui') end) local SETDIRECTFUNCTION = _SCINTILLA.properties.direct_function[1] local SETDIRECTPOINTER = _SCINTILLA.properties.doc_pointer[2] @@ -137,7 +137,7 @@ connect('buffer_new', local ok, err = pcall(run) if not ok then io.stderr:write(err) end end) -connect('buffer_new', events.emit('update_ui')) -- update document status +connect('buffer_new', function() events.emit('update_ui') end) -- Sets the title of the Textadept window to the buffer's filename. -- @param buffer The currently focused buffer. -- cgit v1.2.3