dont modify positions if line numbers arent being shown

This commit is contained in:
Jon Rafkind 2010-11-05 15:43:20 -06:00
parent a698d89a75
commit e0e3870a62

View File

@ -3860,7 +3860,9 @@ designates the character that triggers autocompletion
(define line-numbers-space 0)
(define/override (find-position x y . args)
;; adjust x position to account for line numbers
(super find-position (- x line-numbers-space) y . args))
(if show-line-numbers?
(super find-position (- x line-numbers-space) y . args)
(super find-position x y . args)))
(define (draw-line-numbers dc left top right bottom dx dy)
(setup-dc dc)