From 49587788101dce76111a8b16dfed0889c26b0e61 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 29 Jun 2026 19:20:55 +0200 Subject: regular expression matching can now be reliably interrupted using CTRL+C * The previous checks for interruptions only helped in a few corner cases like for very high search-repeat counts or during backwards searches across the entire buffer. * But even with terex' more predictable runtime properties a single regex execution can hang quite a long time. E.g. `S^EM^X$` on a huge buffer or even more so with backreferences as in `S^~(.*)\1$`. * We now use the new tere_set_is_interrupted_cb() to register teco_interface_is_interrupted(). Types should be compatible as long as gboolean resolves to int. * It's no longer necessary to manually check for teco_interface_is_interrupted() since tere_exec() now returns REG_EINTR in case the callback returned TRUE in which case it's handled by teco_error_regex_set(). --- contrib/terex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/terex b/contrib/terex index fa3d463..d71d752 160000 --- a/contrib/terex +++ b/contrib/terex @@ -1 +1 @@ -Subproject commit fa3d463a4cd563f3c5f29331f48a0161bf586863 +Subproject commit d71d7527a8be8654560867d761036598408bfe14 -- cgit v1.2.3