Fix cursor change so it does not add unnecessary indent