Show lower lines first

This commit is contained in:
Felix Van der Jeugt 2020-04-15 00:37:50 +02:00
parent 5da1ef8486
commit af6b855bc3
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -51,7 +51,7 @@ vis:map(vis.modes.NORMAL, ";o", function()
end) end)
vis:map(vis.modes.NORMAL, ";r", function() vis:map(vis.modes.NORMAL, ";r", function()
local choice = io.popen('fzf < ' .. vis.win.file.path):read() local choice = io.popen('tac < ' .. vis.win.file.path .. ' | fzf'):read()
if choice then if choice then
local line = vis.win.selection.line local line = vis.win.selection.line
table.insert(vis.win.file.lines, line + 1, choice) table.insert(vis.win.file.lines, line + 1, choice)