From 79d1d1a0d5db28de960a373567d3305b17887fe9 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 29 Dec 2010 16:02:15 -0500 Subject: Do not call 'buffer_new' when splitting the view. --- core/gui.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') 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. -- cgit v1.2.3