Skip to content

check bufnr valid#66

Open
jqhr wants to merge 4 commits intochentoast:masterfrom
jqhr:master
Open

check bufnr valid#66
jqhr wants to merge 4 commits intochentoast:masterfrom
jqhr:master

Conversation

@jqhr
Copy link

@jqhr jqhr commented May 9, 2022

For #29, I have config excluded_filetype, but it didn't work. So I check bufnr for buffer valid.

for line, mark in pairs(buffer_marks) do
local text = a.nvim_buf_get_lines(bufnr, line-1, line, true)[1]
table.insert(items, { bufnr=bufnr, lnum=line, col=mark.col + 1,
if nvim_buf_is_loaded(bufnr) then
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean a.nvim_buf_is_loaded?

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.

2 participants