Introduce TermOperator helper and refactor execute()s to use replaceSubjectMatchingTerm
This commit is contained in:
@@ -17,6 +17,6 @@ export class Clear extends Command<{}> {
|
||||
}
|
||||
|
||||
execute(vm: StrVM): Awaitable<StrVM> {
|
||||
return vm.tapInPlace(ctx => ctx.replaceSubjectAsString(''))
|
||||
return vm.replaceContextMatchingTerm({ override: '' })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user