Do not enable iedit from a failing isearch
Fix compile warning and test case