From 997c6a1c9510b97dc980251cf4638d806dec7475 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 23 Feb 2009 23:12:11 -0500 Subject: Fixed SCN_SAVEPOINTLEFT bug for unfocused split views; src/textadept.c --- src/textadept.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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(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); } -- cgit v1.2.3