To reproduce: ```shell $ cat file enum $ printf '%s\n' 'g/enum/i\' '\' '.' '%p' | nvi -e file ``` Expected output: ``` enum ``` Actual output: ``` enum ``` The correct behavior is observed in `ed` and classic vi/ex (tested on OpenIndiana 2024.04).