fix "Bounds out of range" when outdenting a block of text