|
|
@ -154,8 +154,8 @@
|
|
|
|
(cond
|
|
|
|
(cond
|
|
|
|
((= 0 num-to-add) (values from to))
|
|
|
|
((= 0 num-to-add) (values from to))
|
|
|
|
(else
|
|
|
|
(else
|
|
|
|
(if (eq? #\newline (car from))
|
|
|
|
(cond
|
|
|
|
(begin
|
|
|
|
((eq? #\newline (car from))
|
|
|
|
(set-lex-buffer-line!
|
|
|
|
(set-lex-buffer-line!
|
|
|
|
lb
|
|
|
|
lb
|
|
|
|
(sub1 (lex-buffer-line lb)))
|
|
|
|
(sub1 (lex-buffer-line lb)))
|
|
|
@ -164,7 +164,11 @@
|
|
|
|
(car (lex-buffer-line-lengths lb)))
|
|
|
|
(car (lex-buffer-line-lengths lb)))
|
|
|
|
(set-lex-buffer-line-lengths!
|
|
|
|
(set-lex-buffer-line-lengths!
|
|
|
|
lb
|
|
|
|
lb
|
|
|
|
(cdr (lex-buffer-line-lengths lb)))))
|
|
|
|
(cdr (lex-buffer-line-lengths lb))))
|
|
|
|
|
|
|
|
(else
|
|
|
|
|
|
|
|
(set-lex-buffer-col!
|
|
|
|
|
|
|
|
lb
|
|
|
|
|
|
|
|
(sub1 (lex-buffer-col lb)))))
|
|
|
|
(switch-buffers (cdr from)
|
|
|
|
(switch-buffers (cdr from)
|
|
|
|
(cons (car from) to)
|
|
|
|
(cons (car from) to)
|
|
|
|
(sub1 num-to-add)))))))
|
|
|
|
(sub1 num-to-add)))))))
|
|
|
|