From dd77c0ff92bc71e80f13ab814ceac5c4e4d0fcd1 Mon Sep 17 00:00:00 2001 From: Konstantin Kopper Date: Wed, 2 Oct 2019 16:20:30 +0200 Subject: [PATCH] Fix for autocompletion: Do not match against some more symbols --- src/main/kotlin/fxGui/main/PseuCoArea.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/fxGui/main/PseuCoArea.kt b/src/main/kotlin/fxGui/main/PseuCoArea.kt index b30bff8..751bc84 100644 --- a/src/main/kotlin/fxGui/main/PseuCoArea.kt +++ b/src/main/kotlin/fxGui/main/PseuCoArea.kt @@ -249,7 +249,7 @@ internal class PseuCoArea : CodeArea() { * @return The word on the left of [position]. */ tailrec fun getWordAtPositionRecursive(position: Int, word: String): String { - return if (position < 0 || this[position].isBlank() || this[position][0] in "()[]{};+-*/.") word + return if (position < 0 || this[position].isBlank() || this[position][0] in "()[]{};+-*/.