ex_range: fix handling of escaped backslashes.
authormillert <millert@openbsd.org>
Sat, 10 Dec 2022 16:06:18 +0000 (16:06 +0000)
committermillert <millert@openbsd.org>
Sat, 10 Dec 2022 16:06:18 +0000 (16:06 +0000)
commita64626f4d97a9338d0f4af8649e97dc3870beb0a
tree5015ddc5de046a83c85bb2af12ccf298a681508b
parenta2504d3f38ac2ad8a5cb1cce334a1dfd852a1e05
ex_range: fix handling of escaped backslashes.
If there are two consecutive backslashes, skip past both so the
second is not mistakenly treated as an escape character.
This is consistent with how escaped backslashes are treated
in ex_substitute() and global().  From Bosco G. G.
usr.bin/vi/common/search.c