diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2020-05-11 23:49:52 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2020-05-11 23:49:52 +0200 |
commit | 5fdbde2d279a235767c38cc74619441138f09153 (patch) | |
tree | 8a76b7445f69050d2d4244715367e0aff2c4a18e /init.lua | |
parent | 04861fba1f56142b9d2ecf7998e2f29a199db9b8 (diff) | |
download | vis-open_rej-5fdbde2d279a235767c38cc74619441138f09153.tar.gz |
Fix use of vis API.
Diffstat (limited to 'init.lua')
-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 |