diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/events.lua | 9 |
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 |