Release (#327)
Fix: Only set autocommands for select popups (#315) Docs: Small improvements to README and docs Feat: Add branch info to choose_merge_request menu (#318) Chore: Add heart emoji (#323) Feat: Add highlight for mentions (#324) Fix: Do Not Error w/Out Buffer Content (#325) This is a MINOR release.
This commit is contained in:
committed by
GitHub
parent
3c9d95d25b
commit
dc70c97810
@@ -354,6 +354,9 @@ M.split_path = function(path)
|
||||
end
|
||||
|
||||
M.get_buffer_text = function(bufnr)
|
||||
if not vim.api.nvim_buf_is_valid(bufnr) then
|
||||
return ""
|
||||
end
|
||||
local lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false)
|
||||
local text = table.concat(lines, "\n")
|
||||
return text
|
||||
@@ -374,7 +377,6 @@ M.string_to_bool = function(str)
|
||||
elseif str == "false" or str == "False" or str == "FALSE" then
|
||||
return false
|
||||
end
|
||||
M.notify("Not a valid boolean value `" .. str .. "`. Defaulting to `false`", vim.log.levels.WARN)
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user