diff options
author | 2010-04-11 12:18:55 -0400 | |
---|---|---|
committer | 2010-04-11 12:18:55 -0400 | |
commit | 8adff5c59a8936473fa97d75207b3135fbcbedcb (patch) | |
tree | c6e344c806495dff22be44fb538f557b931f519a /core | |
parent | 7f4f30035c8459288666deec9e74f1bc7c41c34f (diff) | |
download | textadept-8adff5c59a8936473fa97d75207b3135fbcbedcb.tar.gz textadept-8adff5c59a8936473fa97d75207b3135fbcbedcb.zip |
Reverted r556.
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 |