Fix undo of line end type change