aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-04-11 12:18:55 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-04-11 12:18:55 -0400
commit8adff5c59a8936473fa97d75207b3135fbcbedcb (patch)
treec6e344c806495dff22be44fb538f557b931f519a
parent7f4f30035c8459288666deec9e74f1bc7c41c34f (diff)
downloadtextadept-8adff5c59a8936473fa97d75207b3135fbcbedcb.tar.gz
textadept-8adff5c59a8936473fa97d75207b3135fbcbedcb.zip
Reverted r556.
-rw-r--r--core/events.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/events.lua b/core/events.lua
index 2dea3d06..9f5c95a1 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -396,15 +396,6 @@ add_handler('view_after_switch',
handle('update_ui')
end)
-textadept.events.add_handler('buffer_new',
- function() -- close initial 'Untitled' buffer
- local b = textadept.buffers[1]
- if #textadept.buffers == 2 and not (b.filename or b._type or b.dirty) then
- view:goto_buffer(1, true)
- buffer:close()
- end
- end)
-
add_handler('quit',
function() -- prompts for confirmation if any buffers are dirty
local any = false