fix a bug in the indenter relating to {} tabbing
This commit is contained in:
parent
a20809c347
commit
e95957483c
|
@ -617,7 +617,8 @@
|
||||||
1))))
|
1))))
|
||||||
(define close-first-curley (get-forward-sexp first-curley))
|
(define close-first-curley (get-forward-sexp first-curley))
|
||||||
(define para (position-paragraph pos))
|
(define para (position-paragraph pos))
|
||||||
(when (<= (paragraph-start-position para) close-first-curley (paragraph-end-position para))
|
(when (and close-first-curley
|
||||||
|
(<= (paragraph-start-position para) close-first-curley (paragraph-end-position para)))
|
||||||
(set! containing-curleys (max 0 (- containing-curleys 1))))
|
(set! containing-curleys (max 0 (- containing-curleys 1))))
|
||||||
(do-indent (* containing-curleys 2))]
|
(do-indent (* containing-curleys 2))]
|
||||||
[(not last)
|
[(not last)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user