Trap cursor in buttons better in dashboard #465
This commit is contained in:
parent
3f85c76a2c
commit
d75df875c9
1 changed files with 6 additions and 3 deletions
|
@ -97,9 +97,12 @@ Possible values:
|
|||
|
||||
(defun +doom-dashboard|reposition-point ()
|
||||
"Trap the point in the buttons."
|
||||
(unless (button-at (point))
|
||||
(or (+doom-dashboard/previous-button)
|
||||
(+doom-dashboard/first-button))))
|
||||
(or (ignore-errors
|
||||
(if (button-at (point))
|
||||
(forward-button 0)
|
||||
(backward-button 1)))
|
||||
(progn (goto-char (point-min))
|
||||
(forward-button 1))))
|
||||
|
||||
(defun +doom-dashboard|init ()
|
||||
"Initializes Doom's dashboard."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue