Skip to content

Commit

Permalink
fix(remote-sshfs-nvim): use function call result (#1208)
Browse files Browse the repository at this point in the history
  • Loading branch information
uroborosq authored Sep 14, 2024
1 parent bc99921 commit 62e1768
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ return {
if type(find_files) == "table" then
local orig_find_files = find_files[1]
find_files[1] = function()
if require("remote-sshfs.connections").is_connected then
if require("remote-sshfs.connections").is_connected() then
require("remote-sshfs.api").find_files()
elseif type(orig_find_files) == "function" then
orig_find_files()
Expand All @@ -41,7 +41,7 @@ return {
if type(live_grep) == "table" then
local orig_live_grep = live_grep[1]
live_grep[1] = function()
if require("remote-sshfs.connections").is_connected then
if require("remote-sshfs.connections").is_connected() then
require("remote-sshfs.api").live_grep()
elseif type(orig_live_grep) == "function" then
orig_live_grep()
Expand Down

0 comments on commit 62e1768

Please sign in to comment.