Skip to content

fix bufnr - #1

Open
yuilib wants to merge 1 commit into
tyru:masterfrom
yuilib:fix-bufnr
Open

fix bufnr#1
yuilib wants to merge 1 commit into
tyru:masterfrom
yuilib:fix-bufnr

Conversation

@yuilib

@yuilib yuilib commented Aug 19, 2019

Copy link
Copy Markdown

bufnr in s:get_error_by_pos is always 0 because getpos returns 0 as bufnr unless getpos takes a mark like 'A as the argument.
To get a correct bufnr, getpos('.') was replaced by bufnr('%') and line('.').

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.

1 participant