onivim / libvim

libvim: The core Vim editing engine as a minimal C library
https://v2.onivim.io
MIT License
691 stars 34 forks source link

fix(search): Disable confirm flag #260

Closed bryphe closed 3 years ago

bryphe commented 3 years ago

Issue: In libvim, trying to run the sub ex command with the confirm flag will enter a blocking input mode, causing a hang.

Defect: The confirm code path hasn't been factored out to a non-blocking state machine

Fix: For now, show an error message saying that confirm isn't currently supported. This is at least better than hanging / crashing. Ideally, though, a future fix would be to implement the confirm behavior as a state machine.