mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 11:37:32 +03:00
White-list relevant AUs
This commit is contained in:
parent
e7aba4ca8a
commit
2b8483d16e
@ -622,15 +622,25 @@ void custom_ui_autocmds_groups(
|
|||||||
buf_T *buf,
|
buf_T *buf,
|
||||||
exarg_T *eap __unused
|
exarg_T *eap __unused
|
||||||
) {
|
) {
|
||||||
// We don't need these events in the UI (yet) and they slow down scrolling: Enable them,
|
switch (event) {
|
||||||
// if necessary, only after optimizing the scrolling.
|
case EVENT_BUFENTER:
|
||||||
if (event == EVENT_CURSORMOVED || event == EVENT_CURSORMOVEDI) {
|
case EVENT_BUFLEAVE:
|
||||||
return;
|
case EVENT_BUFWINENTER:
|
||||||
|
case EVENT_BUFWINLEAVE:
|
||||||
|
case EVENT_BUFWRITEPOST:
|
||||||
|
case EVENT_COLORSCHEME:
|
||||||
|
case EVENT_DIRCHANGED:
|
||||||
|
case EVENT_TABENTER:
|
||||||
|
case EVENT_TEXTCHANGED:
|
||||||
|
case EVENT_TEXTCHANGEDI:
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DLOG("got event %d for file %s in group %d.", event, fname, group);
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
DLOG("got event %d for file %s in group %d.", event, fname, group);
|
|
||||||
|
|
||||||
if (event == EVENT_DIRCHANGED) {
|
if (event == EVENT_DIRCHANGED) {
|
||||||
send_cwd();
|
send_cwd();
|
||||||
return;
|
return;
|
||||||
|
@ -173,6 +173,7 @@ extension NvimView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func autoCommandEvent(_ event: NvimAutoCommandEvent, bufferHandle: Int) {
|
func autoCommandEvent(_ event: NvimAutoCommandEvent, bufferHandle: Int) {
|
||||||
|
// white-list used AUs in custom_ui_autocmds_groups() in server_ui.m
|
||||||
self.bridgeLogger.debug("\(event) -> \(bufferHandle)")
|
self.bridgeLogger.debug("\(event) -> \(bufferHandle)")
|
||||||
|
|
||||||
if event == .bufwinenter || event == .bufwinleave {
|
if event == .bufwinenter || event == .bufwinleave {
|
||||||
|
Loading…
Reference in New Issue
Block a user