fix: do not open exec open file if there is no active buffer
This commit is contained in:
parent
52a0828d77
commit
60015c1736
1 changed files with 6 additions and 0 deletions
|
|
@ -26,6 +26,12 @@ function M.openFile()
|
|||
end
|
||||
|
||||
local file_path = utils.get_current_relative_file_path()
|
||||
|
||||
if file_path:len() == 0 then
|
||||
print("There is no active file to open!")
|
||||
return
|
||||
end
|
||||
|
||||
local current_branch_name = utils.get_current_branch()
|
||||
|
||||
local file_page_url = M.repo_url .. "/blob/" .. current_branch_name .. file_path
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue