UV image editor, only drawing straight lines
Maybe you accidentaly changed the paint stroke method to Line. Press E in the UV Editor window and change it to Space or do it in the Paint Stroke panel.

For other useful shortcuts please see this answer: Can I paint a texture within the UV viewport?