 		editor = atom.workspace.getActiveEditor()
 		editor.replaceSelectedText null, =>  "cubic-bezier(" + @points.join() + ")"
 		editor.clearSelections()
+		@points = {}
 		editor.addSelectionForBufferRange
 			start:
 				column: @matcher.start

atomJquery = require('atom').$
$ = require("jquery")
require('jquery-ui/draggable');



	drawPoints : () ->
		points = @points
		throw "Invalid points: " + points  if not points or points.length isnt 4

		$("#P0").css "top", points[1]
