Fixed undo for shifting and adding line color chaning mechanic