vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 455aa70e0fc36a2b0519b7ce5bf627f5681e879d parent 1c10ea68036c5fde92ecc3ea664b6e4662bd3925 Author: eafe <41127054+eafe@users.noreply.github.com> Date: Wed, 11 Jul 2018 19:20:49 +0000 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. Diffstat:
| M | text-motions.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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; }