Skip to content
Snippets Groups Projects
Commit 572da4e8 authored by David Bühler's avatar David Bühler
Browse files

[Ivette] Fixes Studia search mode, which can accept any marker.

parent eda35346
No related branches found
No related tags found
No related merge requests found
...@@ -129,12 +129,9 @@ const studiaWritesMode : Ivette.ModeProps = { ...@@ -129,12 +129,9 @@ const studiaWritesMode : Ivette.ModeProps = {
async function onEnter(akind: access, term: string): Promise<void> { async function onEnter(akind: access, term: string): Promise<void> {
const stmt = States.getSelected(); const stmt = States.getSelected();
const { kind: mkind } = States.getMarker(stmt); const marker = await Server.send(Ast.parseLval, { stmt, term })
if (mkind === 'STMT') { .catch(handleError);
const marker = await Server.send(Ast.parseLval, { stmt, term }) if (marker) computeStudiaSelection(akind, marker, term);
.catch(handleError);
if (marker) computeStudiaSelection(akind, marker, term);
}
} }
Ivette.registerMode(studiaReadsMode); Ivette.registerMode(studiaReadsMode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment