small usability changes

This commit is contained in:
Joeri Exelmans 2025-05-28 12:51:37 +02:00
parent 8385f08923
commit 7fafa35b4b
5 changed files with 23 additions and 46 deletions

View file

@ -84,7 +84,7 @@ const computeSuggestions = (
return result;
}
export function InputBlock({ state, setState, score, onCancel, typeInfo }: InputBlockProps) {
export function InputBlock({ state, setState, score, onCancel, typeInfo, evalResult }: InputBlockProps) {
const {text, focus} = state;
const globalContext = useContext(GlobalContext);
const env = typeInfo.env;
@ -144,7 +144,7 @@ export function InputBlock({ state, setState, score, onCancel, typeInfo }: Input
},
};
const err = typeInfo.err || evalExpr(state, env).err;
const err = typeInfo.err || evalResult.err;
return <>
<Input