Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: jumplist picker indexing the line after #2273

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

Hippo0o
Copy link
Contributor

@Hippo0o Hippo0o commented Dec 14, 2022

Description

jumplist entry text is currently 1 line after

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

local lnum = 3
print(vim.api.nvim_buf_get_lines(0, lnum, lnum + 1, false)[1])
-- this will give the text of line 4
print(vim.api.nvim_buf_get_lines(0, lnum - 1, lnum, false)[1])
-- this will give the text of line 3

Configuration:

  • Neovim version (nvim --version): v0.8.1
  • Operating system and version: Arch

Checklist:

  • My code follows the style guidelines of this project (stylua)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (lua annotations)

@Conni2461 Conni2461 merged commit e960efa into nvim-telescope:master Dec 21, 2022
@Conni2461
Copy link
Member

Thanks :)

Conni2461 pushed a commit that referenced this pull request Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants