aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/textadept.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 1edef15f..13b54274 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -437,7 +437,8 @@ static void switch_to_view(GtkWidget *editor) {
*/
static void s_notification(GtkWidget *editor, gint, gpointer lParam, gpointer) {
SCNotification *n = reinterpret_cast<SCNotification*>(lParam);
- if (focused_editor != editor && n->nmhdr.code == SCN_URIDROPPED)
+ if (focused_editor != editor &&
+ (n->nmhdr.code == SCN_URIDROPPED || n->nmhdr.code == SCN_SAVEPOINTLEFT))
switch_to_view(editor);
l_handle_scnnotification(n);
}