Bugfix for off-by-one error

This commit is contained in:
Bruce Hill 2021-05-12 21:38:57 -07:00
parent 6eab931c27
commit 21260ec0f6

View File

@ -308,7 +308,7 @@ static pat_t *_bp_simplepattern(file_t *f, const char *str)
left->args.ref.name = "left-word-edge";
left->args.ref.len = strlen(left->args.ref.name);
pat_t *right = new_pat(f, str, str+1, -1, BP_REF);
pat_t *right = new_pat(f, str-1, str, -1, BP_REF);
right->args.ref.name = "right-word-edge";
right->args.ref.len = strlen(right->args.ref.name);