mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(gitbrowse): added line_count
. See #186
This commit is contained in:
parent
0ea57a20cd
commit
f03727c77f
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ function M._open(opts)
|
||||||
fields.line_start = fields.line_start or vim.fn.line(".")
|
fields.line_start = fields.line_start or vim.fn.line(".")
|
||||||
fields.line_end = fields.line_end or fields.line_start
|
fields.line_end = fields.line_end or fields.line_start
|
||||||
end
|
end
|
||||||
|
fields.line_count = fields.line_end - fields.line_start + 1
|
||||||
|
|
||||||
opts.what = is_commit and "commit" or opts.what == "commit" and not fields.commit and "file" or opts.what
|
opts.what = is_commit and "commit" or opts.what == "commit" and not fields.commit and "file" or opts.what
|
||||||
opts.what = not is_commit and opts.what == "file" and not fields.file and "branch" or opts.what
|
opts.what = not is_commit and opts.what == "file" and not fields.file and "branch" or opts.what
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue