summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2015-10-25 15:51:53 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2015-10-25 15:51:53 +0100
commit541aa0f62d231125429c3286b846a4cba800e75e (patch)
tree532eb004206bf85e272ff5e81d98d148b0301ee9
parent9277e633527928b7c10a955ccdf4fd15cd9d7487 (diff)
downloadorg-mode-541aa0f62d231125429c3286b846a4cba800e75e.tar.gz
org-clock: Fix clocking in
* lisp/org-clock.el (org-clock-find-position): Correctly position cursor on the correct headline. Reported-by: Jan Malakhovski <oxij@oxij.org> <http://permalink.gmane.org/gmane.emacs.orgmode/102170>
-rw-r--r--lisp/org-clock.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 5d7c6b4..09f8391 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)))