--- a/Tools__CodeNavigationService.st Fri Aug 10 20:34:12 2012 +0200
+++ b/Tools__CodeNavigationService.st Sun Aug 12 00:20:22 2012 +0200
@@ -349,6 +349,9 @@
characterPosition := textView characterPositionOfLine:line col:col.
syntaxElements := codeView syntaxElements.
+ syntaxElements isEmptyOrNil ifTrue:[
+ ^ nil.
+ ].
index := syntaxElements indexForInserting:characterPosition.
index > syntaxElements size ifTrue:[^nil].
element := syntaxElements at:index ifAbsent:nil.
@@ -466,6 +469,7 @@
characterPosition := textView characterPositionOfLine:line col:col.
syntaxElements := codeView syntaxElements.
+ syntaxElements isEmptyOrNil ifTrue:[self highlightElement:nil. ^ self].
index := syntaxElements indexForInserting:characterPosition.
index > syntaxElements size ifTrue:[self highlightElement:nil. ^ self].
element := syntaxElements at:index.
@@ -595,7 +599,7 @@
!CodeNavigationService class methodsFor:'documentation'!
version_CVS
- ^ '$Header: /cvs/stx/stx/libtool/Tools__CodeNavigationService.st,v 1.17 2012-08-10 18:34:12 stefan Exp $'
+ ^ '$Header: /cvs/stx/stx/libtool/Tools__CodeNavigationService.st,v 1.18 2012-08-11 22:20:22 stefan Exp $'
!
version_SVN