Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
use vis:feedkeys rather than vis:command so that the command is writt…
Browse files Browse the repository at this point in the history
…en in the command window.
  • Loading branch information
guillaumecherel committed Nov 23, 2017
1 parent 0de8dad commit ef104ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fzf-open.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ vis:command_register("fzf", function(argv, force, win, selection, range)
local success, msg, status = file:close()

if status == 0 then
vis:command(string.format("e '%s'", output))
-- vis:command(string.format("e '%s'", output))
vis:feedkeys(string.format(":e '%s'", output))
elseif status == 1 then
vis:info(string.format("fzf-open: No match. Command %s exited with return value %i." , command, status))
elseif status == 2 then
Expand Down

0 comments on commit ef104ea

Please sign in to comment.