Skip to content

Commit

Permalink
Uniformize return-actions nil binding.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadcg committed Sep 12, 2022
1 parent 4b62adc commit ef7ed5a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/history.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ then become available for deletion with `delete-history-entry'."
(let ((buffers (or (alex:ensure-list buffer)
(prompt :prompt "Reset histories of buffer(s)"
:sources (make-instance 'buffer-source
:return-actions '())))))
:return-actions nil)))))
(files:with-file-content (history (history-file (current-buffer)))
(dolist (buffer buffers)
(htree:reset-owner history (id buffer))))))
Expand Down
4 changes: 2 additions & 2 deletions source/mode.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ If it's a single buffer, return it directly (not as a list)."
:prompt "Enable mode(s) for buffer(s)"
:sources (make-instance 'buffer-source
:multi-selection-p t
:return-actions '())))))
:return-actions nil)))))
(modes (if modes
(uiop:ensure-list modes)
(unless explicit-modes-p
Expand Down Expand Up @@ -374,7 +374,7 @@ If it's a single buffer, return it directly (not as a list)."
:prompt "Enable mode(s) for buffer(s)"
:sources (make-instance 'buffer-source
:multi-selection-p t
:return-actions '())))))
:return-actions nil)))))
(modes (if modes
(uiop:ensure-list modes)
(unless explicit-modes-p
Expand Down
4 changes: 2 additions & 2 deletions source/mode/auto.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ For the storage format see the comment in the head of your `auto-mode-rules-file
(make-instance 'prompter:raw-source
:name "New URL")
(make-instance 'global-history-source
:return-actions '())))))
:return-actions nil)))))
(when (typep url 'nyxt::history-entry)
(setf url (url url)))
(add-modes-to-auto-mode-rules
Expand Down Expand Up @@ -360,7 +360,7 @@ For the storage format see the comment in the head of your `auto-mode-rules-file
(make-instance 'prompter:raw-source
:name "New URL")
(make-instance 'global-history-source
:return-actions '())))))
:return-actions nil)))))
(when (typep url 'nyxt::history-entry)
(setf url (url url)))
(add-modes-to-auto-mode-rules (url-infer-match url)
Expand Down
2 changes: 1 addition & 1 deletion source/mode/search-buffer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ Example:
"Search multiple buffers."
(let ((buffers (prompt :prompt "Search buffer(s)"
:sources (make-instance 'buffer-source ; TODO: Define class?
:return-actions '()
:return-actions nil
:multi-selection-p t))))
(prompt
:prompt "Search text"
Expand Down

0 comments on commit ef7ed5a

Please sign in to comment.