This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- load standard vis module, providing parts of the Lua API | |
require('vis') | |
function FilterRange(file, range, pos, filter) | |
-- Based on: http://martanne.github.io/vis/doc/#Vis:operator_new | |
local status, out, err = vis:pipe(file, range, filter) | |
if not status then | |
vis:info(err) | |
else | |
file:delete(range) |