diff options
author | 2009-06-19 18:40:56 -0400 | |
---|---|---|
committer | 2009-06-19 18:40:56 -0400 | |
commit | 1098df588c20599cc3b2d66e87630615a321d17b (patch) | |
tree | aa014792e8eb7a7955f1768ce1d5f1ade4f0b5ca /core/file_io.lua | |
parent | fb758ea341c45b4358f53fe1c945d235de08703c (diff) | |
download | textadept-1098df588c20599cc3b2d66e87630615a321d17b.tar.gz textadept-1098df588c20599cc3b2d66e87630615a321d17b.zip |
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.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) |