aboutsummaryrefslogtreecommitdiff
path: root/core/gui.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-12-29 16:02:15 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2010-12-29 16:02:15 -0500
commit79d1d1a0d5db28de960a373567d3305b17887fe9 (patch)
treebfb21e675bc040dca39eed708aa56592cba3317e /core/gui.lua
parentac1a1ab03ef259d18053be47a31ff389eb88e45c (diff)
downloadtextadept-79d1d1a0d5db28de960a373567d3305b17887fe9.tar.gz
textadept-79d1d1a0d5db28de960a373567d3305b17887fe9.zip
Do not call 'buffer_new' when splitting the view.
Diffstat (limited to 'core/gui.lua')
-rw-r--r--core/gui.lua2
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.