vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 1b36c258781d814e1baf7557d47e2e98a8ba0ac2
parent feff86e4187e17faf67eddd4318e66debbe04fc5
Author: Matthias Braun <matze@braunis.de>
Date:   Sat,  3 Jan 2015 16:38:17 -0800

define underscores to be part of a word

Diffstat:
Mtext-motions.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/text-motions.c b/text-motions.c @@ -22,7 +22,7 @@ int is_word_boundry(int c) { return ISASCII(c) && !(('0' <= c && c <= '9') || ('a' <= c && c <= 'z') || - ('A' <= c && c <= 'Z')); + ('A' <= c && c <= 'Z') || c == '_'); } size_t text_begin(Text *txt, size_t pos) {