Skip to content

Commit

Permalink
slight tweak to completion logic, bringing code in line with intention
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Rytz <lukas.rytz@gmail.com>
  • Loading branch information
SethTisue and lrytz committed May 25, 2023
1 parent 124dbff commit f125f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactive/scala/tools/nsc/interactive/Global.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ class Global(settings: Settings, _reporter: Reporter, projectName: String = "")
symbol.name.isTermName == name.isTermName || // Keep names of the same type
name.isTypeName && isStable // Completing a type: keep stable terms (paths)
}
!isJunk && member.accessible && !symbol.isConstructor && (name.isEmpty || matcher(member.sym.name) && nameTypeOk)
!isJunk && member.accessible && !symbol.isConstructor && (name.isEmpty || matcher(member.sym.name)) && nameTypeOk

}
}
Expand Down

0 comments on commit f125f82

Please sign in to comment.