Skip to content

Commit

Permalink
buffer(toggle-prompt-buffer-focus): Minor refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadcg committed Dec 18, 2023
1 parent c9857de commit 2464ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/buffer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1483,10 +1483,10 @@ is listed first."
"Toggle the focus between the current buffer and the current prompt buffer."
(let ((prompt-buffer (current-prompt-buffer)))
(if (prompt-buffer-p (focused-buffer))
(progn (set-current-buffer (current-buffer))
(prog1 (set-current-buffer (current-buffer))
(ps-eval :buffer prompt-buffer
(setf (ps:@ (nyxt/ps:qs document "*") style opacity) "0.5")))
(progn (ffi-focus-prompt-buffer (current-window) prompt-buffer)
(prog1 (ffi-focus-prompt-buffer (current-window) prompt-buffer)
(ps-eval :buffer prompt-buffer
(setf (ps:@ (nyxt/ps:qs document "*") style opacity) "1"))))))

Expand Down

0 comments on commit 2464ffe

Please sign in to comment.