guard a use of get-root-data in the token tree implementation
closes PR 12072 original commit: 8e5bb730b369b169821695e1b3216d68a8d71d64
This commit is contained in:
parent
0156ad664b
commit
b250603a14
|
@ -879,8 +879,9 @@ added get-regions
|
|||
(send tokens search! (- (if (eq? direction 'backward) (sub1 position) position)
|
||||
start-pos))
|
||||
(cond
|
||||
((or (eq? 'white-space (data-type (send tokens get-root-data)))
|
||||
(and comments? (eq? 'comment (data-type (send tokens get-root-data)))))
|
||||
((and (send tokens get-root-data)
|
||||
(or (eq? 'white-space (data-type (send tokens get-root-data)))
|
||||
(and comments? (eq? 'comment (data-type (send tokens get-root-data))))))
|
||||
(skip-whitespace (+ start-pos
|
||||
(if (eq? direction 'forward)
|
||||
(send tokens get-root-end-position)
|
||||
|
|
Loading…
Reference in New Issue
Block a user