Bug fix: install SmallSense completion controller even if electric edit support off.
authorJan Vrany <jan.vrany@fit.cvut.cz>
Sat, 02 May 2015 22:13:59 +0200
changeset 456 2837a6da2a89
parent 455 f1cd6e210528
child 457 dddd3409f0a0
Bug fix: install SmallSense completion controller even if electric edit support off.
SmallSense__EditService.st
--- a/SmallSense__EditService.st	Sat May 02 22:10:30 2015 +0200
+++ b/SmallSense__EditService.st	Sat May 02 22:13:59 2015 +0200
@@ -166,14 +166,12 @@
 updateSupport
     | lang |
 
-    UserPreferences current smallSenseElectricEditSupportEnabled ifTrue:[
-        support language ~~ (lang := codeView language) ifTrue:[
-            self updateSupport: (EditSupport forLanguage: lang).
-        ].
+    support language ~~ (lang := codeView language) ifTrue:[
+        self updateSupport: (EditSupport forLanguage: lang).
     ].
 
     "Created: / 16-09-2013 / 16:31:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 13-05-2014 / 14:49:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 02-05-2015 / 21:52:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 updateSupport: anEditSupport
@@ -191,12 +189,15 @@
      If the method returns true, the event will not be processed
      by the view."
 
-    ^support notNil 
-        ifTrue:[support keyPress: key x:x y:y in: view]
-        ifFalse:[false]
+    UserPreferences current smallSenseElectricEditSupportEnabled ifTrue:[
+        ^ support notNil 
+            ifTrue:[support keyPress: key x:x y:y in: view]
+            ifFalse:[false]
+    ].
+    ^ false
 
     "Created: / 07-03-2010 / 09:36:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 24-07-2013 / 23:28:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 02-05-2015 / 21:53:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !EditService methodsFor:'registering'!