aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-02-23 23:12:11 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-02-23 23:12:11 -0500
commit997c6a1c9510b97dc980251cf4638d806dec7475 (patch)
treeb52063fc474e448492f4f7332635f5b494da3283 /src
parent7d2a6cf9f0c597f8780a8da7bec8acd33d2c9c66 (diff)
downloadtextadept-997c6a1c9510b97dc980251cf4638d806dec7475.tar.gz
textadept-997c6a1c9510b97dc980251cf4638d806dec7475.zip
Fixed SCN_SAVEPOINTLEFT bug for unfocused split views; src/textadept.c
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);
}