Skip to content

Commit 9419000

Browse files
AndreasArvidssoncursorless-bot
authored andcommitted
cursorless_command("replaceWithTarget") fix (cursorless-dev#1813)
Fixes cursorless-dev#1811 I have not added any Talon side tests. The reason for this is that the failing code path is not used with voice commands. You could only hit this bug by manually calling our public python api. ## Checklist - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet
1 parent d76fdb6 commit 9419000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def cursorless_command(action_name: str, target: CursorlessTarget):
8787
if action_name in callback_actions:
8888
callback_actions[action_name](target)
8989
elif action_name in ["replaceWithTarget", "moveToTarget"]:
90-
actions.user.cursorless_bring_move(
90+
actions.user.private_cursorless_bring_move(
9191
action_name, BringMoveTargets(target, ImplicitDestination())
9292
)
9393
elif action_name in no_wait_actions:

0 commit comments

Comments
 (0)