diff options
-rw-r--r-- | init.lua | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 |