When in incremental search handle ^M (a.k.a. <cr>) like ^[ (a.k.a.
authorkrw <krw@openbsd.org>
Wed, 11 Jul 2018 12:21:37 +0000 (12:21 +0000)
committerkrw <krw@openbsd.org>
Wed, 11 Jul 2018 12:21:37 +0000 (12:21 +0000)
commit5b6ba03a9429768e9d788597969ec8a50a7b9817
treec11455c939aa320566fdd60cae5aeacbcf26687e
parentec107b41ef0d619a5bb1f26425c4e43be2dde511
When in incremental search handle ^M (a.k.a. <cr>) like ^[ (a.k.a.
<esc>). i.e. exit incremental search and set the mark. This is what
emacs does.

pointers, suggestions and ok florian@
usr.bin/mg/search.c