Permalink
Browse files

fix #2618, don't tab-complete keywords in modules

  • Loading branch information...
1 parent 31e4451 commit d4abf15dec8013dd866d343b9717bcc2954971ee @JeffBezanson JeffBezanson committed Mar 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/repl-readline.c
View
@@ -446,8 +446,8 @@ static void symtab_search(jl_sym_t *tree, int *pcount, ios_t *result,
{
do {
if (common_prefix(prefix, tree->name) == plen &&
- ((module ? jl_defines_or_exports_p(module, tree) : jl_boundp(jl_current_module, tree)) ||
- is_keyword(tree->name))) {
+ (module ? jl_defines_or_exports_p(module, tree) : (jl_boundp(jl_current_module, tree) ||
+ is_keyword(tree->name)))) {
ios_puts(str, result);
ios_puts(tree->name + plen, result);
ios_putc('\n', result);

0 comments on commit d4abf15

Please sign in to comment.