aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreafe <41127054+eafe@users.noreply.github.com>2018-07-11 19:20:49 +0000
committerGitHub <noreply@github.com>2018-07-11 19:20:49 +0000
commit9cc17dfe11975e8b76eb8cfdcc001ced828460ec (patch)
treebd0ad4a91d4dcad5f3ad4e5d822b00528c26e3ac
parenta4b64c5c396646bb2f14db3b4145a5482a2ff8bf (diff)
downloadvis-9cc17dfe11975e8b76eb8cfdcc001ced828460ec.tar.gz
vis-9cc17dfe11975e8b76eb8cfdcc001ced828460ec.tar.xz
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.
-rw-r--r--text-motions.c2
1 files changed, 1 insertions, 1 deletions
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;
}