SmallSense__SmalltalkEditSupport.st
changeset 120 4fefce92f5bb
parent 117 441529422c2f
child 134 e34ee6ceb7c8
--- a/SmallSense__SmalltalkEditSupport.st	Fri Oct 04 08:01:47 2013 +0100
+++ b/SmallSense__SmalltalkEditSupport.st	Fri Oct 04 08:25:15 2013 +0100
@@ -113,6 +113,7 @@
         ^ true
     ].
     tokens := self tokensAtCursorLine.
+    tokens isEmpty ifTrue:[ ^ false ].
     i := tokens size.
     t := tokens at: i.
     t == $[ ifTrue:[
@@ -141,7 +142,7 @@
     ^ false.
 
     "Created: / 25-07-2013 / 00:02:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 17-09-2013 / 23:21:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 04-10-2013 / 08:03:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 keyPressReturnToken
@@ -161,10 +162,10 @@
 
 initializeForService: anEditService    
     super initializeForService: anEditService.
-    service textView  autoIndent:true.
-    self initializeCompletion.
+    service textView autoIndent:true.
 
     "Created: / 27-09-2013 / 13:22:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 03-10-2013 / 17:44:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !SmalltalkEditSupport methodsFor:'private'!