diff options
author | 2009-06-19 18:40:56 -0400 | |
---|---|---|
committer | 2009-06-19 18:40:56 -0400 | |
commit | 1098df588c20599cc3b2d66e87630615a321d17b (patch) | |
tree | aa014792e8eb7a7955f1768ce1d5f1ade4f0b5ca /src/textadept.c | |
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 'src/textadept.c')
-rw-r--r-- | src/textadept.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c index 13b54274..cef20859 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -426,10 +426,11 @@ void set_statusbar_text(const char *text, bool docbar) { * @see s_command */ static void switch_to_view(GtkWidget *editor) { + l_handle_event("view_before_switch"); focused_editor = editor; l_set_view_global(editor); l_set_buffer_global(SCINTILLA(editor)); - l_handle_event("view_switch"); + l_handle_event("view_after_switch"); } /** |