Merge branch 'folke:main' into discard_deps_revisited

This commit is contained in:
abeldekat 2023-09-09 06:22:47 +00:00 committed by GitHub
commit 6582ddb352
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -159,7 +159,7 @@ function M:open_url(path)
end
function M:setup_patterns()
local commit_pattern = "%f[%w](" .. string.rep("%w", 7) .. ")%f[%W]"
local commit_pattern = "%f[%w](" .. string.rep("[a-f0-9]", 7) .. ")%f[%W]"
self:on_pattern(ViewConfig.keys.hover, {
[commit_pattern] = function(hash)
self:diff({ commit = hash, browser = true })