Skip to content

Commit 4db5544

Browse files
FindTool: Fix navigation between found matches being added to undo
1 parent e06b660 commit 4db5544

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/FindTool.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export default class FindTool extends BaseTool {
4949
}
5050

5151
if (matchIdx < matches.length) {
52-
this.editor.dispatch(this.editor.viewport.zoomTo(matches[matchIdx], true, true));
52+
const undoable = false;
53+
this.editor.dispatch(this.editor.viewport.zoomTo(matches[matchIdx], true, true), undoable);
5354
this.editor.announceForAccessibility(
5455
this.editor.localization.focusedFoundText(matchIdx + 1, matches.length)
5556
);

0 commit comments

Comments
 (0)