diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/gui.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/gui.lua b/core/gui.lua index d057177d..ab255e67 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -96,6 +96,7 @@ connect('view_new', io.stderr:write(err) end end) +connect('view_new', events.emit('update_ui')) -- update document status local SETDIRECTFUNCTION = _SCINTILLA.properties.direct_function[1] local SETDIRECTPOINTER = _SCINTILLA.properties.doc_pointer[2] @@ -136,6 +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 -- Sets the title of the Textadept window to the buffer's filename. -- @param buffer The currently focused buffer. |