Skip to content

Commit

Permalink
browser(set-window-title): Delete deprecated argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadcg committed Dec 18, 2023
1 parent bd28190 commit ea45d29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/browser.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,10 @@ restored."
(when (null browser)
(error "There is no current *browser*. Is Nyxt started?")))

(-> set-window-title (&optional window buffer) *)
(-> set-window-title (&optional window) *)
(export-always 'set-window-title)
(defun set-window-title (&optional (window (current-window)) (buffer (current-buffer)))
(defun set-window-title (&optional (window (current-window)))
"Set current window title to the return value of (titler window). "
(declare (ignore buffer)) ; TODO: BUFFER is kept for backward compatibility. Remove with 3.0.
(setf (ffi-window-title window) (funcall (titler window) window)))

(-> window-default-title (window) string)
Expand Down

0 comments on commit ea45d29

Please sign in to comment.