You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(files): Use full match when finding bufnr for filename
In certain situations, buffer number for an org file was matched on it's
archive location (.org_archive extension).
For example, if two buffers are opened, one being
`/path/to/org/todos.org` and `/path/to/org/todos.org_archive`, doing
`vim.fn.bufnr('/path/to/org/todos.org')` could return the archive file
because of the partial match.
This is now fixed by doing a strict match
`vim.fn.bufnr('^/path/to/org/todos.org$')`
0 commit comments