|
@@ -427,7 +427,8 @@ current time."
|
|
(save-excursion
|
|
(save-excursion
|
|
(goto-char (if line (point-at-bol) (point-min)))
|
|
(goto-char (if line (point-at-bol) (point-min)))
|
|
(while (not (eobp))
|
|
(while (not (eobp))
|
|
- (let ((habit (get-text-property (point) 'org-habit-p)))
|
|
|
|
|
|
+ (let ((habit (get-text-property (point) 'org-habit-p))
|
|
|
|
+ (invisible-prop (get-text-property (point) 'invisible)))
|
|
(when habit
|
|
(when habit
|
|
(move-to-column org-habit-graph-column t)
|
|
(move-to-column org-habit-graph-column t)
|
|
(delete-char (min (+ 1 org-habit-preceding-days
|
|
(delete-char (min (+ 1 org-habit-preceding-days
|
|
@@ -438,7 +439,12 @@ current time."
|
|
habit
|
|
habit
|
|
(time-subtract moment (days-to-time org-habit-preceding-days))
|
|
(time-subtract moment (days-to-time org-habit-preceding-days))
|
|
moment
|
|
moment
|
|
- (time-add moment (days-to-time org-habit-following-days))))))
|
|
|
|
|
|
+ (time-add moment (days-to-time org-habit-following-days))))
|
|
|
|
+ ;; Inherit invisible state of hidden entries.
|
|
|
|
+ (when invisible-prop
|
|
|
|
+ (put-text-property
|
|
|
|
+ (- (point) org-habit-graph-column) (point)
|
|
|
|
+ 'invisible invisible-prop))))
|
|
(forward-line)))))
|
|
(forward-line)))))
|
|
|
|
|
|
(defun org-habit-toggle-habits ()
|
|
(defun org-habit-toggle-habits ()
|