fix tab replacement issue - if no lines started with tabs plugin would hang