Skip to content

Commit

Permalink
fix: Remove sideline-truncate-suffix to prevent warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 authored Nov 22, 2024
1 parent b6b7945 commit baa38cf
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions sideline.el
Original file line number Diff line number Diff line change
Expand Up @@ -197,21 +197,6 @@
(defvar-local sideline-render-this-command nil
"If this is non-nil, re-render this command.")

;;
;; (@* "Obsolete" )
;;

(defcustom sideline-truncate-suffix "..."
"Truncation suffix."
:type 'string
:group 'sideline)

(define-obsolete-variable-alias
'sideline-truncate-suffix
'truncate-string-ellipsis
"sideline 0.3.0"
"Use built-in variable instead.")

;;
;; (@* "Externals" )
;;
Expand Down Expand Up @@ -721,12 +706,10 @@ If argument ON-LEFT is non-nil, it will align to the left instead of right."
(sideline--with-buffer-window (or buffer (current-buffer))
(unless (funcall sideline-inhibit-display-function)
(setq sideline--render-data
`( :eol ,(sideline--window-end)
:bol ,(window-start)
:hscroll ,(sideline--window-hscroll)
:win-width ,(sideline--window-width)
:suffix-width ,(and sideline-truncate-suffix
(sideline--str-len sideline-truncate-suffix))))
`( :eol ,(sideline--window-end)
:bol ,(window-start)
:hscroll ,(sideline--window-hscroll)
:win-width ,(sideline--window-width)))
(run-hooks 'sideline-pre-render-hook)
(sideline--render-backends sideline-backends-left t)
(sideline--render-backends sideline-backends-right nil)
Expand Down

0 comments on commit baa38cf

Please sign in to comment.