From 541aa0f62d231125429c3286b846a4cba800e75e Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 25 Oct 2015 15:51:53 +0100 Subject: [PATCH] org-clock: Fix clocking in * lisp/org-clock.el (org-clock-find-position): Correctly position cursor on the correct headline. Reported-by: Jan Malakhovski --- lisp/org-clock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 5d7c6b4d6..09f83918d 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1457,7 +1457,7 @@ When FIND-UNCLOSED is non-nil, first check if there is an unclosed clock line and position cursor in that line." (org-back-to-heading t) (catch 'exit - (let* ((beg (line-beginning-position 2)) + (let* ((beg (line-beginning-position)) (end (save-excursion (outline-next-heading) (point))) (org-clock-into-drawer (org-clock-into-drawer)) (drawer (org-clock-drawer-name)))