Skip to content

Commit

Permalink
fix: empty argument processing for :RemoveSSHFSConnect command. fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
nosduco committed Jan 8, 2024
1 parent 92260bb commit e11dd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/remote-sshfs/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ local default_opts = {
M.setup_commands = function()
-- Create commands to connect/edit/reload/disconnect/find_files/live_grep
vim.api.nvim_create_user_command("RemoteSSHFSConnect", function(opts)
if opts.args then
if opts.args and opts.args ~= "" then
local host = require("remote-sshfs.utils").parse_host_from_command(opts.args)
require("remote-sshfs.connections").connect(host)
else
Expand Down

0 comments on commit e11dd19

Please sign in to comment.