 (defun merlin-check-synchronize (&optional clean)
   "If merlin point is before the end of line send everything up to the end of line"
   (interactive)
-  (let ((p merlin-lock-point))
-    (if (> (point-at-eol) merlin-lock-point)
-        (merlin-update-point nil))))
+  (save-excursion
+    (previous-line 1)
+    (let ((p merlin-lock-point))
+      (if (> (point-at-eol) merlin-lock-point)
+          (merlin-update-point nil)))))
 
 (defun merlin-edit (start end length)
   (if (< start merlin-lock-point)
       (progn
-        (message "im coming in out of this rain")
         (setq merlin-lock-point (merlin-retract-to start))
         (merlin-update-overlay))))
 ;; COMPLETION

    (set (make-local-variable 'merlin-enclosing-overlay) nil)
    (set (make-local-variable 'merlin-enclosing-types) nil)
    (set (make-local-variable 'merlin-enclosing-offset) nil)
    (setq ac-sources '(merlin-ac-source))
    (add-to-list 'after-change-functions 'merlin-edit)
    (set-process-query-on-exit-flag (merlin-get-process) nil)

  "List containing the enclosing type")
(defvar merlin-enclosing-offset nil
  "Current offset in `merlin-enclosing-types'")
(defvar merlin-last-point-type nil
  "Last position where the user hit C-c C-t")

(defvar merlin-idle-point nil
  "Position of the last time we printed the type of point")
