fixed a bug in word completion

svn: r9921
This commit is contained in:
Robby Findler 2008-05-21 14:08:42 +00:00
parent 64d8b39b49
commit 40fc919765

View File

@ -441,10 +441,10 @@
[(or (is-stopped?) (is-frozen?))
no-word]
[else
(let ([type (classify-position current-pos)])
(let ([type (classify-position (max 0 (- current-pos 1)))])
(cond
[(eq? 'symbol type)
(get-text (look-for-non-symbol current-pos)
(get-text (look-for-non-symbol (max 0 (- current-pos 1)))
current-pos)]
[else no-word]))])))