vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit cab8f0453a62045b63f8db7ebbbf3e0d42b08ba2 parent 1773705fb0b43bb0aa455aec321a639b29551fd4 Author: khwerz <khwerz@gmail.com> Date: Mon, 25 Jul 2022 08:18:27 -0400 filetype: actually match filename Diffstat:
| M | lua/plugins/filetype.lua | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua @@ -488,7 +488,7 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win) local mime if path and #path > 0 then - local name = path:match("[^/]+") -- filename + local name = path:match("[^/]+$") -- filename if name then local unchanged while #name > 0 and name ~= unchanged do