Add support for dirty flag & tab -> space