[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/41136: \<word search doesn't work in vi
>Synopsis: \<word search doesn't work in vi
>Arrival-Date: Sat Apr 04 00:15:00 +0000 2009
>Originator: Brian Marcotte
>Release: 5.0 RC3
NetBSD panix2.panix.com 5.0_RC3 NetBSD 5.0_RC3 (PANIX-XEN3U-USER) #0: Mon Mar
23 00:30:15 EDT 2009
\<word (beginning of word) search doesn't work in vi. It seems to ignore the \<.
word\> (end-of word) DOES work though.
echo "aaaaa aaaaa aaa" > somefile
When in vi, search for \<aaa
It should bring you to the beginning of one of those words, but instead will go
to any set of "aaa".
In src/dist/nvi/regex/regex2.h, OUT is now defined as WEOF which is -1.
Later in src/dist/nvi/regex/engine.c, OUT is used as a base to define BOL, EOL,
BOW, etc. The important part is that BOL=OUT+1 (or 0).
In a couple different functions, flagch is initialized to 0 probably assuming
none BOL, EOL, etc. could ever equal 0.
Presumably, OUT needs to be defined to something outside the normal character
Main Index |
Thread Index |