@@ 465,6 465,7 @@ M.copy_blob_url = function()
local ok, url = pcall(M.get_blob_url)
if not ok then
notify_error('copy_blob_url failed: %s', url)
+ return
end
clipboard_url(url)
end
@@ 473,6 474,7 @@ M.open_blob_url = function()
local ok, url = pcall(M.get_blob_url)
if not ok then
notify_error('open_blob_url failed: %s', url)
+ return
end
open_url(url)
end
@@ 493,6 495,7 @@ M.copy_blame_url = function()
local ok, url = pcall(M.get_blame_url)
if not ok then
notify_error('copy_blame_url failed: %s', url)
+ return
end
clipboard_url(url)
end
@@ 501,6 504,7 @@ M.open_blame_url = function()
local ok, url = pcall(M.get_blame_url)
if not ok then
notify_error('open_blame_url failed: %s', url)
+ return
end
open_url(url)
end
@@ 521,6 525,7 @@ M.copy_history_url = function()
local ok, url = pcall(M.get_history_url)
if not ok then
notify_error('copy_history_url failed: %s', url)
+ return
end
clipboard_url(url)
end
@@ 529,6 534,7 @@ M.open_history_url = function()
local ok, url = pcall(M.get_history_url)
if not ok then
notify_error('open_history_url failed: %s', url)
+ return
end
open_url(url)
end
@@ 549,6 555,7 @@ M.copy_raw_url = function()
local ok, url = pcall(M.get_raw_url)
if not ok then
notify_error('copy_raw_url failed: %s', url)
+ return
end
clipboard_url(url)
end
@@ 557,6 564,7 @@ M.open_raw_url = function()
local ok, url = pcall(M.get_raw_url)
if not ok then
notify_error('open_raw_url failed: %s', url)
+ return
end
open_url(url)
end
@@ 577,6 585,7 @@ M.copy_tree_url = function()
local ok, url = pcall(M.get_tree_url)
if not ok then
notify_error('copy_tree_url failed: %s', url)
+ return
end
clipboard_url(url)
end
@@ 585,6 594,7 @@ M.open_tree_url = function()
local ok, url = pcall(M.get_tree_url)
if not ok then
notify_error('open_tree_url failed: %s', url)
+ return
end
open_url(url)
end
@@ 670,6 680,7 @@ M.copy_gomod_tree_url = function()
local ok, url = pcall(M.get_gomod_tree_url)
if not ok then
notify_error('copy_gomod_tree_url failed: %s', url)
+ return
end
clipboard_url(url)
end
@@ 678,6 689,7 @@ M.open_gomod_tree_url = function()
local ok, url = pcall(M.get_gomod_tree_url)
if not ok then
notify_error('open_gomod_tree_url failed: %s', url)
+ return
end
open_url(url)
end
@@ 726,6 738,7 @@ M.copy_gosum_tree_url = function()
local ok, url = pcall(M.get_gosum_tree_url)
if not ok then
notify_error('copy_gosum_tree_url failed: %s', url)
+ return
end
clipboard_url(url)
end
@@ 734,6 747,7 @@ M.open_gosum_tree_url = function()
local ok, url = pcall(M.get_gosum_tree_url)
if not ok then
notify_error('open_gosum_tree_url failed: %s', url)
+ return
end
open_url(url)
end