diff options
author | Jean-Marie Gaillourdet <jm@gaillourdet.net> | 2020-12-13 12:50:52 +0100 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2021-02-16 23:33:19 -0500 |
commit | ee4ffa5672e9cd28b28e2d947993847234540327 (patch) | |
tree | ed031e5c262ff1507caf59f99af3138b6ea05543 | |
parent | 75ccb9719fc0d6822e7e69e9d3079f884cfb96ea (diff) | |
download | org-mode-ee4ffa5672e9cd28b28e2d947993847234540327.tar.gz |
org-clock: fix runtime error in org-clock-in
* org-clock.el (org-clock-in): Under certain configurations of org,
Emacs doom, evil-org-mode and my custom settings, org-clock-in aborts
with an an error because indent-line-to is called with -2.
TINYCHANGE
-rw-r--r-- | lisp/org-clock.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 2073b33..af7c0ea 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1369,7 +1369,7 @@ the default behavior." (end-of-line 0) (org-in-item-p))) (beginning-of-line 1) - (indent-line-to (- (current-indentation) 2))) + (indent-line-to (max 0 (- (current-indentation) 2)))) (insert org-clock-string " ") (setq org-clock-effort (org-entry-get (point) org-effort-property)) (setq org-clock-total-time (org-clock-sum-current-item |