fix a coloring bug

also, add a little more logging to the aspell logging info
This commit is contained in:
Robby Findler 2012-11-24 13:54:33 -06:00
parent 4b094f8ec8
commit 793ee71e69
2 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,8 @@
(define problematic 'dont-know)
(define (aspell-problematic?)
(when (eq? problematic 'dont-know)
(set! problematic (do-aspell-problematic)))
(set! problematic (do-aspell-problematic))
(asp-log (format "set problematic to ~s" problematic)))
problematic)
(define (do-aspell-problematic)

View File

@ -394,7 +394,7 @@ added get-regions
[lp 0])
(cond
[(null? spellos)
(add-coloring color (+ sp lp) (+ sp (string-length str)))]
(add-coloring color (+ pos lp) (+ pos (string-length str)))]
[else
(define err (car spellos))
(define err-start (list-ref err 0))