Closed naryl closed 2 months ago
Trying to implement proper vi-like C-u/C-d scrolling, I'm getting this bug with the following code:
(define-motion vi-scroll-up (&optional (n nil)) (:universal) (:default-n-arg nil) ;; Somehow n is still 1 by default... (when (eql n 1) (setf n (floor (/ (window-height (current-window)) 2)))) (previous-line n) (scroll-up n))
Tried setting both &optional and :default-n-arg to 0 or 2. n is still 1 when called without the argument.
&optional
:default-n-arg
n
arg-descriptor should be :universal-nil instead of :universal.
arg-descriptor
:universal-nil
:universal
Trying to implement proper vi-like C-u/C-d scrolling, I'm getting this bug with the following code: