From 9cc17dfe11975e8b76eb8cfdcc001ced828460ec Mon Sep 17 00:00:00 2001 From: eafe <41127054+eafe@users.noreply.github.com> Date: Wed, 11 Jul 2018 19:20:49 +0000 Subject: add tab character to special characters array (#1) The special characters array doesn't contain the tab character thus causing issue 711. By adding the tab character to the array, quotes are matched correctly across tab characters, too. Although much less used, other white space characters such as \v, \f, and \r should perhaps be added as well. --- text-motions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text-motions.c b/text-motions.c index 689bb1f..6d695be 100644 --- a/text-motions.c +++ b/text-motions.c @@ -601,7 +601,7 @@ size_t text_bracket_match_symbol(Text *txt, size_t pos, const char *symbols) { if (text_iterator_byte_next(&it, &c)) { /* if a single or double quote is followed by * a special character, search backwards */ - char special[] = " \n)}]>.,:;"; + char special[] = " \t\n)}]>.,:;"; if (memchr(special, c, sizeof(special))) direction = -1; } -- cgit v1.2.3