Skip to content

Commit

Permalink
fix ind
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Oct 20, 2023
1 parent b1f1c7d commit 1c6a15d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions sideline.el
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ If argument ON-LEFT is non-nil, it will align to the left instead of right."
(funcall (cdr candidates)
(lambda (cands &rest _)
(sideline--with-buffer buffer
(when sideline-mode
(sideline--render-candidates cands backend on-left order)))))
(when sideline-mode
(sideline--render-candidates cands backend on-left order)))))
(sideline--render-candidates candidates backend on-left order)))))

(defun sideline-stop-p ()
Expand All @@ -522,17 +522,17 @@ If argument ON-LEFT is non-nil, it will align to the left instead of right."
(defun sideline-render (&optional buffer)
"Render sideline once in the BUFFER."
(sideline--with-buffer (or buffer (current-buffer))
(unless (funcall sideline-inhibit-display-function)
(let ((mark (list (line-beginning-position))))
(setq sideline--occupied-lines-left
(if sideline-backends-left-skip-current-line mark nil))
(setq sideline--occupied-lines-right
(if sideline-backends-right-skip-current-line mark nil)))
(sideline--delete-ovs) ; for function call externally
(run-hooks 'sideline-pre-render-hook)
(sideline--render-backends sideline-backends-left t)
(sideline--render-backends sideline-backends-right nil)
(run-hooks 'sideline-post-render-hook))))
(unless (funcall sideline-inhibit-display-function)
(let ((mark (list (line-beginning-position))))
(setq sideline--occupied-lines-left
(if sideline-backends-left-skip-current-line mark nil))
(setq sideline--occupied-lines-right
(if sideline-backends-right-skip-current-line mark nil)))
(sideline--delete-ovs) ; for function call externally
(run-hooks 'sideline-pre-render-hook)
(sideline--render-backends sideline-backends-left t)
(sideline--render-backends sideline-backends-right nil)
(run-hooks 'sideline-post-render-hook))))

(defvar-local sideline--delay-timer nil
"Timer for delay.")
Expand Down

0 comments on commit 1c6a15d

Please sign in to comment.