Skip to content

Commit 5f757c5

Browse files
Jameson Nashxal-0
Jameson Nash
authored andcommitted
Update stdlib/REPL/src/REPLCompletions.jl
1 parent f4fc810 commit 5f757c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/REPLCompletions.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ function get_import_mode(s::String, pos::Int)
944944
# ^\s*(?:@\w+\s*(?:\(\s*)?)?
945945

946946
# Do not enter import mode unless cursor beyond import keyword
947-
beyond_kw(m) = pos >= m.offsets[1] + length(m[1])
947+
beyond_kw(m) = pos >= m.offsets[1] + sizeof(m[1])
948948

949949
# match simple cases like `using |` and `import |`
950950
mod_import_match_simple = match(r"^\s*(?:@\w+\s*(?:\(\s*)?)?\b(using|import)\s*$", s)

0 commit comments

Comments
 (0)