Skip to content

Commit b5dc5ae

Browse files
Jameson Nashxal-0
Jameson Nash
authored andcommitted
Update stdlib/REPL/src/REPLCompletions.jl
1 parent 709968d commit b5dc5ae

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
@@ -941,7 +941,7 @@ function get_import_mode(s::String, pos::Int)
941941
# ^\s*(?:@\w+\s*(?:\(\s*)?)?
942942

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

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

0 commit comments

Comments
 (0)