Make pervious commit work with -i option