--- a/EditTextViewCompletionSupport.st Tue Jul 03 03:33:36 2018 +0000
+++ b/EditTextViewCompletionSupport.st Tue Jul 03 13:42:12 2018 +0200
@@ -85,7 +85,7 @@
"/ completeImmediate := UserPreferences current immediateCodeCompletion.
"/ open on CTRL- or TAB-key?
- (completionView isNil or:[completionView realized not]) ifTrue:[
+ (completionView notNil and:[completionView realized]) ifFalse:[
editView hasSelection ifFalse:[
((ch := editView characterBeforeCursor) notNil "/ i.e. not at begin of line
and:[ ch isLetterOrDigit or:[ ch == $_ ] ]) ifTrue:[
@@ -99,7 +99,7 @@
UserPreferences current codeCompletionOnTabKey ifTrue:[
"/ only if the character after the cursor is a separator!!
"/ otherwise, we cannot insert tabs
- (ch := editView characterAfterCursor isNil or:[ch isSeparator]) ifTrue:[
+ ((ch := editView characterAfterCursor) isNil or:[ch isSeparator]) ifTrue:[
autoSelect := true.
self updateCompletionList.
^ true
@@ -164,6 +164,7 @@
^ false.
"Modified: / 24-08-2017 / 21:32:52 / cg"
+ "Modified: / 03-07-2018 / 13:41:45 / sr"
!
postKeyPress:key