aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2019-04-18 00:36:36 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2019-04-18 00:36:36 -0400
commit3343beb1c943137dc61c16478d7ddc15336a3b5c (patch)
treea33e17ec8c41eee0e7816d049e1136b8edefe84b /src/textadept.c
parente22f78d999a10855b62797bc32e512cf15abc16d (diff)
downloadtextadept-3343beb1c943137dc61c16478d7ddc15336a3b5c.tar.gz
textadept-3343beb1c943137dc61c16478d7ddc15336a3b5c.zip
Do not emit an `events.SAVE_POINT_LEFT` event for unfocused views.
Forcing a switch to and from the source buffer's view triggers "switch" view events, which can cause trouble. There's no need to know this in real-time and `buffer.modified` can be checked in an `events.BUFFER_AFTER_SWITCH` or `events.VIEW_AFTER_SWITCH` handler.
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/textadept.c b/src/textadept.c
index d08b4955..998a45c7 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -1900,10 +1900,6 @@ static void s_notify(Scintilla *view, int _, void *lParam, void*__) {
if (focused_view == view || n->nmhdr.code == SCN_URIDROPPED) {
if (focused_view != view) goto_view(view);
lL_notify(lua, n);
- } else if (n->nmhdr.code == SCN_SAVEPOINTLEFT) {
- Scintilla *prev = focused_view;
- // Do not let a split view steal focus.
- goto_view(view), lL_notify(lua, n), goto_view(prev);
} else if (n->nmhdr.code == SCN_FOCUSIN)
goto_view(view);
}