Skip to content

Commit

Permalink
Fix GotoDefinition
Browse files Browse the repository at this point in the history
Workaround for agda#154
  • Loading branch information
m0rphism authored Jul 15, 2024
1 parent 06d6020 commit e735a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ gotoDefinition = withAgda $ do
vim_command $ "edit " <> ds_filepath ds
b' <- window_get_buffer w
contents <- fmap (T.unlines . V.toList) $ buffer_get_lines b' 0 (-1) False
let buffer_idx = toBytes contents $ zeroIndex $ ds_position ds
let buffer_idx = toBytes contents $ incIndex $ zeroIndex $ ds_position ds
-- TODO(sandy): use window_set_cursor instead?
vim_command $ "keepjumps normal! " <> T.pack (show buffer_idx) <> "go"

Expand Down

0 comments on commit e735a2d

Please sign in to comment.