Update comment color and jump to the last cursor position