diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-10-06 14:00:13 +0400 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-10-06 14:00:13 +0400 |
commit | 9a25dfdc41048e659a4f6b50f87c8a3ea771b01a (patch) | |
tree | 6463f9e2f7bb2db0b7db655080dbe04b5424e094 | |
parent | 52d73e8b5d82aba0ec3c1b0efd8b6b0a1ee5b5a2 (diff) | |
download | sciteco-9a25dfdc41048e659a4f6b50f87c8a3ea771b01a.tar.gz |
fixup b36ff2502ae3b0e18fa862a01fba9cc2c9067e31: fixes pattern match characters after escaped characters
-rw-r--r-- | src/search.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |