+2
-2
lines changedFilter options
+2
-2
lines changed Original file line number Diff line number Diff line change
@@ -1000,10 +1000,10 @@ function M.jump_to_location(location)
1000
1000
1001
1001
--- Jump to new location (adjusting for UTF-16 encoding of characters)
1002
1002
api.nvim_set_current_buf(bufnr)
1003
-
api.nvim_buf_set_option(0, 'buflisted', true)
1003
+
api.nvim_buf_set_option(bufnr, 'buflisted', true)
1004
1004
local range = location.range or location.targetSelectionRange
1005
1005
local row = range.start.line
1006
-
local col = get_line_byte_from_position(0, range.start)
1006
+
local col = get_line_byte_from_position(bufnr, range.start)
1007
1007
api.nvim_win_set_cursor(0, {row + 1, col})
1008
1008
-- Open folds under the cursor
1009
1009
vim.cmd("normal! zv")
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4