aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index 85f3e8d..d94b8e9 100644
--- a/init.lua
+++ b/init.lua
@@ -8,12 +8,10 @@ function file_exists(name)
end
end
-function open_rej_file()
- local win = vis.win
- local file = win.file
- local rejfile = file.path .. '.rej'
+function open_rej_file(file)
+ local rejfile = file .. '.rej'
if file_exists(rejfile) then
- vis:command('ed ' .. rejfile)
+ vis:command('open ' .. rejfile)
end
end