diff options
author | 2019-04-18 00:36:36 -0400 | |
---|---|---|
committer | 2019-04-18 00:36:36 -0400 | |
commit | 3343beb1c943137dc61c16478d7ddc15336a3b5c (patch) | |
tree | a33e17ec8c41eee0e7816d049e1136b8edefe84b /src | |
parent | e22f78d999a10855b62797bc32e512cf15abc16d (diff) | |
download | textadept-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')
-rw-r--r-- | src/textadept.c | 4 |
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); } |