From 8adff5c59a8936473fa97d75207b3135fbcbedcb Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 11 Apr 2010 12:18:55 -0400 Subject: Reverted r556. --- core/events.lua | 9 --------- 1 file changed, 9 deletions(-) (limited to 'core') 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 -- cgit v1.2.3