diff: Fix rename pretty-print when suffix and prefix overlap