From 1098df588c20599cc3b2d66e87630615a321d17b Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 19 Jun 2009 18:40:56 -0400 Subject: Use before_switch and after_switch events for buffers and views. Moved C code for saving/restoring state when switching buffers to Lua. Also added saving of folding state. --- core/file_io.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/file_io.lua') diff --git a/core/file_io.lua b/core/file_io.lua index fec1cc5e..11436cbb 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -476,5 +476,5 @@ local function update_modified_file() end end end -textadept.events.add_handler('buffer_switch', update_modified_file) -textadept.events.add_handler('view_switch', update_modified_file) +textadept.events.add_handler('buffer_after_switch', update_modified_file) +textadept.events.add_handler('view_after_switch', update_modified_file) -- cgit v1.2.3