fix: do not open exec open file if there is no active buffer
This commit is contained in:
parent
60015c1736
commit
ddc84cf0fd
1 changed files with 2 additions and 1 deletions
|
|
@ -27,7 +27,8 @@ function M.openFile()
|
|||
|
||||
local file_path = utils.get_current_relative_file_path()
|
||||
|
||||
if file_path:len() == 0 then
|
||||
-- if there is no buffer opened
|
||||
if file_path == "/" then
|
||||
print("There is no active file to open!")
|
||||
return
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue