aboutsummaryrefslogtreecommitdiffstats
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 994d92c..e35e951 100644
--- a/init.lua
+++ b/init.lua
@@ -18,7 +18,7 @@ M.get_query = function()
local str = vis.win.file.lines[line]
local len_str = string.len(str)
- local URLchars = '[^a-zA-Z0-9%?._=+;&/:@#!-]'
+ local URLchars = '[^a-zA-Z0-9~%?._=+;&/:@#!-]'
local to = str:find(URLchars, pos)
if to == nil then to = len_str else to = to - 1 end
local from = str:reverse():find(URLchars, len_str - pos + 1)
@@ -49,6 +49,7 @@ vis:map(vis.modes.NORMAL, "gx", function()
local cur_word = M.get_query()
-- https://bugzilla.suse.com/show_bug.cgi?id=1130840
-- https://bugs.freedesktop.org/show_bug.cgi?id=103807 x
+ -- https://git.sr.ht/~exec64/imv
-- https://www.damejidlo.cz/potrefena-husa-vinohrady
-- gh#python/cpython#7778 or bpo#34032
-- (https://src.adamsgaard.dk/)