Skip to content

Commit

Permalink
Fix crash in tab completion
Browse files Browse the repository at this point in the history
Fixes #1. Patch by Maxdamantus.
  • Loading branch information
edolstra committed Apr 11, 2014
1 parent 22a47ab commit 1734e8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nix-repl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,10 @@ void NixRepl::completePrefix(string prefix)

} catch (ParseError & e) {
// Quietly ignore parse errors.
}catch (EvalError & e) {
} catch (EvalError & e) {
// Quietly ignore evaluation errors.
} catch (UndefinedVarError & e) {
// Quietly ignore undefined variable errors.
}
}
}
Expand Down

0 comments on commit 1734e8a

Please sign in to comment.