From 7524ef25ff0db230c39ec31b37dd2b4d3d53eaf6 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Wed, 27 Feb 2013 22:23:15 +0100 Subject: [PATCH] org-indent.el: Bugfix * org-indent.el (org-indent-add-properties): Bugfix: prevent negative value for `added-ind-per-lvl'. Thanks to Torsten Bronger for reporting this. --- lisp/org-indent.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-indent.el b/lisp/org-indent.el index d5f17b2cb..6e6f2bf15 100644 --- a/lisp/org-indent.el +++ b/lisp/org-indent.el @@ -328,7 +328,7 @@ stopped." ;; inline task or not. (let* ((case-fold-search t) (limited-re (org-get-limited-outline-regexp)) - (added-ind-per-lvl (1- org-indent-indentation-per-level)) + (added-ind-per-lvl (abs (1- org-indent-indentation-per-level))) (pf (save-excursion (and (ignore-errors (let ((outline-regexp limited-re)) (org-back-to-heading t)))