Addressing instant vs fuzzymatch compatibility issue ref. #21

This commit is contained in:
bakkeby 2023-04-21 09:52:47 +02:00
parent 0329c28407
commit fc8c1c56c6

View File

@ -102,5 +102,14 @@ fuzzymatch(void)
} }
#endif // HIGHPRIORITY_PATCH #endif // HIGHPRIORITY_PATCH
curr = sel = matches; curr = sel = matches;
#if INSTANT_PATCH
if (instant && matches && matches==matchend) {
puts(matches->text);
cleanup();
exit(0);
}
#endif // INSTANT_PATCH
calcoffsets(); calcoffsets();
} }