diff options
author | 2011-01-02 21:32:46 -0500 | |
---|---|---|
committer | 2011-01-02 21:32:46 -0500 | |
commit | 2323ec38bf5f5340e93de3a53eaca4b428a3645e (patch) | |
tree | b7a14f165bdd8316aa961bf3912ff9b1976a974c /core/gui.lua | |
parent | f36a6ca8837f8d861ee5494c098dee7fd4a09de7 (diff) | |
download | textadept-2323ec38bf5f5340e93de3a53eaca4b428a3645e.tar.gz textadept-2323ec38bf5f5340e93de3a53eaca4b428a3645e.zip |
Fixed bug with update_ui in buffer_new and view_new events; core/gui.lua
Diffstat (limited to 'core/gui.lua')
-rw-r--r-- | core/gui.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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. |