aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-10-24 17:30:21 +0200
committerMatěj Cepl <mcepl@cepl.eu>2023-10-24 17:30:21 +0200
commit2467e51afb6ad28b597a064317ec5f1077292813 (patch)
tree83bc0b0c7e9c8fb808c23adc433c92efced8859f
parentd93374d59ee9d43204bd3e21e3ec3fd16fe2de8a (diff)
downloadvis-jump-master.tar.gz
Correct name of the abbrevURL executable.HEADmaster
-rw-r--r--init.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 8a3c655..f9860bd 100644
--- a/init.lua
+++ b/init.lua
@@ -34,7 +34,7 @@ M.replace_URLs = function()
-- local status, out, err = vis:pipe(vis.win.file, vis.win.selection.range, cmd)
-- but it doesn't work
local tmpfile = os.tmpname()
- local cmd = getPath(debug.getinfo(2,'S').source) .. "abbrevURL.lua >" .. tmpfile
+ local cmd = "abbrevURL >" .. tmpfile
local ahandle = io.popen(cmd, 'w')
ahandle:write(vis.win.file.lines[line])
ahandle:close()
@@ -68,7 +68,6 @@ vis:map(vis.modes.NORMAL, "gG", function()
vis.win.selection:to(my_line, my_col)
end, "Shorten URLs")
vis:operator_new("gK", function(file, range, pos)
- -- local cmd = getPath(debug.getinfo(2,'S').source) .. "abbrevURL.lua"
local cmd = "abbrevURL"
local status, out, err = vis:pipe(file, range, cmd)
if not status then