emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/indent-bars 1215185bfb 033/431: draw: return object (if


From: ELPA Syncer
Subject: [elpa] externals/indent-bars 1215185bfb 033/431: draw: return object (if any)
Date: Mon, 16 Sep 2024 12:59:10 -0400 (EDT)

branch: externals/indent-bars
commit 1215185bfb23185f7a38385163976e626533f46e
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>

    draw: return object (if any)
---
 indent-bars.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/indent-bars.el b/indent-bars.el
index 2625fe92ad..da3eaca0ee 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -606,12 +606,12 @@ variables, which see)."
 (defun indent-bars--draw (start end &optional bar-from obj)
   "Set bar text properties from START to END, starting at bar number BAR-FROM.
 BAR-FROM is one by default.  If passed, properties are set in
-OBJ, otherwise in the buffer."
+OBJ, otherwise in the buffer.  OBJ is returned."
   (cl-loop for pos = start then (+ pos indent-bars-spacing) while (< pos end)
           for barnum from (or bar-from 1)
-          ;; XXX need rear-nonsticky face???
           do (put-text-property pos (1+ pos)
-                                'face (indent-bars--face barnum) obj)))
+                                'face (indent-bars--face barnum) obj))
+  obj)
 
 (defun indent-bars--display ()
   "Display indentation bars based on line contents."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]