diff options
author | Thomas Morgan <tlm@ziiuu.com> | 2012-03-16 19:35:44 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-03-16 19:35:44 +0100 |
commit | 490ef86497367f282222d849280ac6d406d1cad2 (patch) | |
tree | 76acf586ba30411de56542026b5098103a9ab919 | |
parent | ce8b0963dbb2e7ddb99d3a797ddf129028ed44d2 (diff) | |
download | org-mode-490ef86497367f282222d849280ac6d406d1cad2.tar.gz |
org-habit.el: Fix bug while inserting habit graph in the agenda buffer.
* org-habit.el (org-habit-insert-consistency-graphs): Fix bug
while inserting habit graph in the agenda buffer.
TINYCHANGE
-rw-r--r-- | lisp/org-habit.el | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/org-habit.el b/lisp/org-habit.el index f8bd12a..aca3430 100644 --- a/lisp/org-habit.el +++ b/lisp/org-habit.el @@ -344,13 +344,12 @@ current time." (delete-char (min (+ 1 org-habit-preceding-days org-habit-following-days) (- (line-end-position) (point)))) - (insert (org-habit-build-graph - habit - (time-subtract moment - (days-to-time org-habit-preceding-days)) - moment - (time-add moment - (days-to-time org-habit-following-days)))))) + (insert-before-markers + (org-habit-build-graph + habit + (time-subtract moment (days-to-time org-habit-preceding-days)) + moment + (time-add moment (days-to-time org-habit-following-days)))))) (forward-line))))) (defun org-habit-toggle-habits () |