vi: use basic regular expressions for search
Both traditional vi and vim use basic regular expressions for search. Also, they don't allow matches to extend across line endings. Thus with the file: 123 234 the search '/2.*4$' should find the second '2', not the first. Make BusyBox vi do the same. Whether or not VI_REGEX_SEARCH is enabled: function old new delta ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0) Total: 0 bytes Signed-off-by: NAndrey Dobrovolsky <andrey.dobrovolsky.odessa@gmail.com> Signed-off-by: NRon Yorston <rmy@pobox.com> Signed-off-by: NDenys Vlasenko <vda.linux@googlemail.com>
Showing
想要评论请 注册 或 登录