From 9a25dfdc41048e659a4f6b50f87c8a3ea771b01a Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 6 Oct 2024 14:00:13 +0400 Subject: fixup b36ff2502ae3b0e18fa862a01fba9cc2c9067e31: fixes pattern match characters after escaped characters --- src/search.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/search.c b/src/search.c index c9a2ba0..db85283 100644 --- a/src/search.c +++ b/src/search.c @@ -381,6 +381,7 @@ teco_pattern2regexp(teco_string_t *pattern, guint codepage, gboolean single_expr break; case TECO_SEARCH_STATE_ESCAPE: { + state = TECO_SEARCH_STATE_START; gsize len = codepage == SC_CP_UTF8 ? g_utf8_next_char(pattern->data) - pattern->data : 1; /* the allocation could theoretically be avoided by escaping char-wise */ -- cgit v1.2.3