diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -1,14 +1,5 @@ local internal_open = false -local function file_exists(path) - local f = io.open(path) - local out = f ~= nil - if out then - io.close(f) - end - return out -end - local function open_other_file(file) local other = "" if file then @@ -19,7 +10,7 @@ local function open_other_file(file) -- open rejected hunks file other = file .. '.rej' end - if file_exists(other) then + if vis:file_exists(other) then internal_open = true vis:command('open ' .. other) end |