diff --git a/src/cmd.js b/src/cmd.js index 19a4273..20f47b5 100644 --- a/src/cmd.js +++ b/src/cmd.js @@ -552,7 +552,7 @@ const goto_definition = (state, index) => { loc = {module: state.current_module, index: d.index} } return { - state: set_cursor_position( + state: move_cursor( {...state, current_module: loc.module}, loc.index, )