Fix crash in tab completion

Fixes #1. Patch by Maxdamantus.
This commit is contained in:
Eelco Dolstra 2014-04-11 12:51:15 +02:00
parent 22a47ab03c
commit 1734e8a149

View file

@ -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.
}
}
}