Use `(values)' to return no return values instead of `values'...
This commit is contained in:
parent
0cda756391
commit
d76ca37524
|
@ -85,16 +85,16 @@
|
||||||
((= ch key-backspace)
|
((= ch key-backspace)
|
||||||
(if can-write
|
(if can-write
|
||||||
(if (< pos-col 3)
|
(if (< pos-col 3)
|
||||||
values
|
(values)
|
||||||
(begin
|
(begin
|
||||||
(set! text (remove-from-command-buffer text pos-col))
|
(set! text (remove-from-command-buffer text pos-col))
|
||||||
(set! pos-col (- pos-col 1))))
|
(set! pos-col (- pos-col 1))))
|
||||||
values))
|
(values)))
|
||||||
|
|
||||||
;; move cursor to previous line Ctrl-p, keycode 16
|
;; move cursor to previous line Ctrl-p, keycode 16
|
||||||
((= ch 16)
|
((= ch 16)
|
||||||
(if (< pos-fin-ln 2)
|
(if (< pos-fin-ln 2)
|
||||||
values
|
(values)
|
||||||
(let ((length-prev-line
|
(let ((length-prev-line
|
||||||
(string-length
|
(string-length
|
||||||
(list-ref text (- pos-line 2)))))
|
(list-ref text (- pos-line 2)))))
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
((= ch 141)
|
((= ch 141)
|
||||||
(let ((last-pos (length text)))
|
(let ((last-pos (length text)))
|
||||||
(if (>= pos-line last-pos)
|
(if (>= pos-line last-pos)
|
||||||
values
|
(values)
|
||||||
(let ((length-next-line
|
(let ((length-next-line
|
||||||
(string-length
|
(string-length
|
||||||
(list-ref text pos-line))))
|
(list-ref text pos-line))))
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
|
|
||||||
((= ch key-left)
|
((= ch key-left)
|
||||||
(if (<= pos-col 2)
|
(if (<= pos-col 2)
|
||||||
values
|
(values)
|
||||||
(begin
|
(begin
|
||||||
(set! pos-col (- pos-col 1)))))
|
(set! pos-col (- pos-col 1)))))
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
(list-ref text
|
(list-ref text
|
||||||
(- pos-line 1)))))
|
(- pos-line 1)))))
|
||||||
(if (>= pos-col (+ line-length 2))
|
(if (>= pos-col (+ line-length 2))
|
||||||
values
|
(values)
|
||||||
(begin
|
(begin
|
||||||
(set! pos-col (+ pos-col 1))))))
|
(set! pos-col (+ pos-col 1))))))
|
||||||
|
|
||||||
|
@ -189,8 +189,8 @@
|
||||||
(begin
|
(begin
|
||||||
(set! text (add-to-command-buffer ch text pos-col))
|
(set! text (add-to-command-buffer ch text pos-col))
|
||||||
(set! pos-col (+ pos-col 1)))
|
(set! pos-col (+ pos-col 1)))
|
||||||
values))
|
(values)))
|
||||||
values)))
|
(values))))
|
||||||
(make-buffer text pos-line pos-col pos-fin-ln pos-y pos-x
|
(make-buffer text pos-line pos-col pos-fin-ln pos-y pos-x
|
||||||
num-lines num-cols can-write history-pos)))))
|
num-lines num-cols can-write history-pos)))))
|
||||||
|
|
||||||
|
|
|
@ -1560,7 +1560,7 @@
|
||||||
(cols (getmaxx win)))
|
(cols (getmaxx win)))
|
||||||
(if (and (= 0 y) (= 0 x))
|
(if (and (= 0 y) (= 0 x))
|
||||||
(if (equal? #\space (winch win))
|
(if (equal? #\space (winch win))
|
||||||
values
|
(values)
|
||||||
(begin
|
(begin
|
||||||
(wdelch win)
|
(wdelch win)
|
||||||
(wrefresh win)))
|
(wrefresh win)))
|
||||||
|
@ -1586,7 +1586,7 @@
|
||||||
(x (getx win))
|
(x (getx win))
|
||||||
(cols (getmaxx win)))
|
(cols (getmaxx win)))
|
||||||
(if (and (= 0 y) (= 0 x))
|
(if (and (= 0 y) (= 0 x))
|
||||||
values
|
(values)
|
||||||
(if (= 0 x)
|
(if (= 0 x)
|
||||||
(begin
|
(begin
|
||||||
(wmove win (- y 1) (- cols 1))
|
(wmove win (- y 1) (- cols 1))
|
||||||
|
|
Loading…
Reference in New Issue